支付调试
This commit is contained in:
parent
f5ba7d86f1
commit
35e8ed52e6
|
|
@ -44,7 +44,7 @@ public class PayController {
|
||||||
* @return AjaxResult<Object>
|
* @return AjaxResult<Object>
|
||||||
*/
|
*/
|
||||||
@PostMapping("/prepay")
|
@PostMapping("/prepay")
|
||||||
public AjaxResult<Object> prepay(@Validated @RequestBody PaymentValidate paymentValidate) {
|
public AjaxResult<Object> prepay(@Validated @RequestBody PaymentValidate paymentValidate) throws Exception {
|
||||||
String scene = paymentValidate.getScene();
|
String scene = paymentValidate.getScene();
|
||||||
Integer payWay = paymentValidate.getPayWay();
|
Integer payWay = paymentValidate.getPayWay();
|
||||||
Integer orderId = paymentValidate.getOrderId();
|
Integer orderId = paymentValidate.getOrderId();
|
||||||
|
|
@ -78,7 +78,7 @@ public class PayController {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 发起支付
|
// 发起支付
|
||||||
try {
|
// try {
|
||||||
switch (payWay) {
|
switch (payWay) {
|
||||||
case 1: // 余额支付
|
case 1: // 余额支付
|
||||||
iPayService.walletPay();
|
iPayService.walletPay();
|
||||||
|
|
@ -87,9 +87,9 @@ public class PayController {
|
||||||
WxPayUnifiedOrderV3Result.JsapiResult result = iPayService.wxPay(paymentValidate, terminal);
|
WxPayUnifiedOrderV3Result.JsapiResult result = iPayService.wxPay(paymentValidate, terminal);
|
||||||
return AjaxResult.success(result);
|
return AjaxResult.success(result);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
throw new OperateException(e.getMessage());
|
// throw new OperateException(e.getMessage());
|
||||||
}
|
// }
|
||||||
|
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue