loemkie 1 mês atrás
pai
commit
b14faf8b01

+ 2 - 1
src/main/java/com/qmrb/system/framework/security/config/SecurityConfig.java

@@ -97,7 +97,8 @@ public class SecurityConfig {
                         "/api/v1/patientSign/uploadJcReport",
                         "/api/v1/patientSign/getCaUnSignQrcode",
                         "/api/v1/patientSign/getFwzxScanQrcode",
-                        "/api/ucenter/**"
+                        "/api/ucenter/**",
+                        "/api/order/wechatPayCallback"
 
                 );
     }

+ 2 - 1
src/main/java/com/qmrb/system/service/impl/OrderServiceImpl.java

@@ -136,6 +136,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
             //预支付交易会话标识 prepay_id
             String bodyAsString = EntityUtils.toString(response.getEntity());
             //5.APP调起支付API 构造签名串
+            log.info(bodyAsString);
             String timestamp = DateUtil.currentSeconds() + "";
             String nonce = RandomUtil.randomString(SystemConstant.NUM_32);
             StringBuilder builder = new StringBuilder();
@@ -168,7 +169,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
 
     Integer queryAmountByOrderNo(String orderNo) {
         QueryWrapper<Order> wrapper = new QueryWrapper<>();
-        wrapper.select("amount").eq("id",orderNo);
+        wrapper.select("amounts_payable").eq("id",orderNo);
         return getOne(wrapper).getAmountsPayable();
     }