suochencheng 6 lat temu
rodzic
commit
99c5301d36

+ 10 - 0
src/main/java/com/izouma/weixin/web/LeYunFuController.java

@@ -292,6 +292,14 @@ public class LeYunFuController {
 
 
                     JSONObject responseJson = new JSONObject(response);
                     JSONObject responseJson = new JSONObject(response);
 
 
+                    if ("ORDER_NOT_EXIST".equals(responseJson.getString("return_code"))) {
+                        wxpayTemp.setResultCode("ORDER_NOT_EXIST");
+                        wxpayTempMapper.updateByPrimaryKeySelective(wxpayTemp);
+
+                        continue;
+                    }
+
+
                     Map<String, String> notifyMap = new HashMap<>();
                     Map<String, String> notifyMap = new HashMap<>();
 
 
                     notifyMap.put("return_code", responseJson.getString("return_code"));
                     notifyMap.put("return_code", responseJson.getString("return_code"));
@@ -307,8 +315,10 @@ public class LeYunFuController {
                     notifyMap.put("amount", String.valueOf(responseJson.getInt("amount")));
                     notifyMap.put("amount", String.valueOf(responseJson.getInt("amount")));
                     notifyMap.put("sign", responseJson.getString("sign"));
                     notifyMap.put("sign", responseJson.getString("sign"));
 
 
+
                     payResultChange(notifyMap);
                     payResultChange(notifyMap);
 
 
+
                 } catch (Exception e) {
                 } catch (Exception e) {
                     logger.error("查询支付结果异常", e);
                     logger.error("查询支付结果异常", e);
                 }
                 }

+ 2 - 0
src/main/resources/spring/appWebService.xml

@@ -29,6 +29,7 @@
 
 
 	<!--自动开始房间定时任务-->
 	<!--自动开始房间定时任务-->
 	<bean id="houseInfoTask" class="com.izouma.awesomeadmin.web.HouseInfoController"></bean>
 	<bean id="houseInfoTask" class="com.izouma.awesomeadmin.web.HouseInfoController"></bean>
+	<bean id="lyfTask" class="com.izouma.weixin.web.LeYunFuController"></bean>
 
 
 	<task:scheduled-tasks>
 	<task:scheduled-tasks>
 		<task:scheduled ref="houseInfoTask" method="autoBegin" cron="0 0/1 * * * ? "/>
 		<task:scheduled ref="houseInfoTask" method="autoBegin" cron="0 0/1 * * * ? "/>
@@ -36,6 +37,7 @@
 		<task:scheduled ref="houseInfoTask" method="autoEnd" cron="0 0/5 * * * ? "/>
 		<task:scheduled ref="houseInfoTask" method="autoEnd" cron="0 0/5 * * * ? "/>
 		<task:scheduled ref="houseInfoTask" method="updateToAnalysis" cron="0 0/3 * * * ? "/>
 		<task:scheduled ref="houseInfoTask" method="updateToAnalysis" cron="0 0/3 * * * ? "/>
 		<task:scheduled ref="houseInfoTask" method="autoSettlement" cron="0 0/5 * * * ? "/>
 		<task:scheduled ref="houseInfoTask" method="autoSettlement" cron="0 0/5 * * * ? "/>
+		<task:scheduled ref="lyfTask" method="autoCheckPayResult" cron="0/5 * * * * ? "/>
 	</task:scheduled-tasks>
 	</task:scheduled-tasks>