Explorar el Código

加一个非空判断

lighter hace 1 año
padre
commit
177ec6123d

+ 1 - 1
pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>thyyxxk</groupId>
     <artifactId>wxservice-server</artifactId>
-    <version>12.1.8</version>
+    <version>12.2.0</version>
     <name>wxservice-server</name>
     <description>server for wxservice-web</description>
 

+ 3 - 0
src/main/java/thyyxxk/wxservice_server/service/WxApiService.java

@@ -144,6 +144,9 @@ public class WxApiService {
             }
             TradeVectorUtil.addBeingQuery(tradeNo);
             WxPayOrder order = dao.selectOrderByTradeNo(tradeNo);
+            if (null == order) {
+                return "ERROR:订单不存在。【订单号:" + tradeNo + "】";
+            }
             OrderType orderType = OrderType.get(order.getOrderType());
             int hasSaved = 0;
             if (orderType == OrderType.REGISTRATION || orderType == OrderType.CLINIC_REGISTER) {

+ 2 - 2
src/main/resources/application.yml

@@ -44,8 +44,8 @@ mybatis-plus:
 
 siMzApiUrl: http://172.16.30.26:1100/mzFee
 
-#chronicUrl: http://demo.hnthyy.cn:8706/chronicDisease
-chronicUrl: http://localhost:8706/chronicDisease
+chronicUrl: http://demo.hnthyy.cn:8706/chronicDisease
+#chronicUrl: http://localhost:8706/chronicDisease
 
 hrgApiUrl: http://demo.hnthyy.cn:8089/thmz/api/v1
 #hrgApiUrl: http://172.16.30.119:8089/thmz/api/v1