Переглянути джерело

Merge branch 'dev/2024/0514/update-business-Y' of feifan/mall-backend-business into master

更新快递100订阅失败的原因显示
Yangzw 10 місяців тому
батько
коміт
21950defe4

+ 2 - 2
feifan-module-mall/feifan-module-trade-biz/src/main/java/cn/newfeifan/mall/module/trade/service/order/TradeOrderUpdateServiceImpl.java

@@ -447,13 +447,13 @@ public class TradeOrderUpdateServiceImpl implements TradeOrderUpdateService {
         String returnCode = jsonObject.get("returnCode").getAsString();
 
         if (result && returnCode.equals("200")) {
-            log.info("订单号:{}:订阅成功",order.getLogisticsNo());
+            log.info("订单号:{}:订阅成功",order.getNo());
 
             order.setSubscriptionLogisticsInfo(TradeOrderSubscribeStatusEnum.SUBSCRIBE.getStatus());
         } else if(returnCode.equals("600") || returnCode.equals("601")) {
             throw exception(NOT_SUFFICIENT_FUNDS);
         } else {
-            log.info("订单号:{}:订阅失败",order.getLogisticsNo());
+            log.info("订单号:{}:订阅失败原因:{}",order.getNo(),jsonObject);
 
             order.setSubscriptionLogisticsInfo(TradeOrderSubscribeStatusEnum.abnormal.getStatus());
         }