Преглед изворни кода

处理京东发货处理漏洞。

hexiugang пре 2 година
родитељ
комит
c44d19526d

+ 2 - 0
watero-rst-service/src/main/java/com/iamberry/rst/service/cm/SalesOrderServiceImpl.java

@@ -2298,9 +2298,11 @@ public class SalesOrderServiceImpl implements SalesOrderService {
                             logger.info("京东发货回传请求成功:result=SUCCESS:{}, MSG:{}", operatorResult.getSuccess(), operatorResult.getChineseErrCode());
                         } else {
                             logger.info("京东发货回传请求失败:result=SUCCESS:{}, MSG:{}", operatorResult.getSuccess(), operatorResult.getChineseErrCode());
+                            throw new RuntimeException("京东发货回传请求失败:" + operatorResult.getChineseErrCode());
                         }
                     } else {
                         logger.info("京东发货回传请求错误:{}", result);
+                        throw new RuntimeException("京东发货回传请求失败" );
                     }
 
                 } catch (JdException e) {