|
|
@@ -1863,6 +1863,7 @@ public class HouseOrderController implements HouseOrderAPI {
|
|
|
public CommonResult pay(WxPayDto wpd, BindingResult bindingResult, HttpServletRequest request) throws Exception {
|
|
|
System.out.println(TimeExchange.getTime() + "微信支付参数====:" + JSON.toJSON(wpd));
|
|
|
String wxCode = request.getHeader("openId");
|
|
|
+ log.info("openId:"+wxCode);
|
|
|
if (wxCode == null || wxCode == "") {
|
|
|
return CommonResult.fail("openId不能为空");
|
|
|
}
|
|
|
@@ -2011,11 +2012,12 @@ public class HouseOrderController implements HouseOrderAPI {
|
|
|
|
|
|
PrepayWithRequestPaymentResponse responseSdk = null;
|
|
|
try {
|
|
|
+ log.info("请求支付参数:" + requestpay.toString());
|
|
|
responseSdk = service.prepayWithRequestPayment(requestpay);
|
|
|
log.info("请求支付参数返回:" + responseSdk.toString());
|
|
|
} catch (Exception e) {
|
|
|
log.info("请求支付异常返回:" + e);
|
|
|
- return CommonResult.ok(e.getMessage());
|
|
|
+ return CommonResult.fail(e.getMessage());
|
|
|
}
|
|
|
return CommonResult.ok(responseSdk);
|
|
|
}
|