Browse Source

支付成功,订单完成

刘俊驰 1 năm trước cách đây
mục cha
commit
65312102a8

+ 4 - 4
mec-mall/mall-portal/src/main/java/com/yonge/cooleshow/portal/service/impl/OmsPortalOrderServiceImpl.java

@@ -897,7 +897,7 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
             throw new BizException("订单支付信息未找到");
         }
         OmsOrderDetail detail = detail(orderPayment.getOrderNo());
-        if (detail.getStatus() == 0) {
+//        if (detail.getStatus() == 0) {
             orderSuccess(detail, payAmount, payChannel);
 
             orderPayment.setStatus(TradeStatusEnum.succeeded.getCode());
@@ -911,12 +911,12 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
             if (!httpResponseResult.getStatus()) {
                 throw new BizException(httpResponseResult.getMsg());
             }
-        } else {
-            LOG.error("汇付支付回调,订单状态异常。 req is {}", detail.getOrderSn());
+//        } else {
+//            LOG.error("汇付支付回调,订单状态异常。 req is {}", detail.getOrderSn());
 
 
 //            orderRefund(orderPayment,detail.getPayAmount().toString());
-        }
+//        }
 
     }