Explorar o código

fix 超时任务id,定时任务去查找对应任务执行状态

zoujiajian hai 6 meses
pai
achega
823b9a58b7

+ 4 - 0
netflix-service/src/main/java/com/cyksj/service/recharge/impl/AfDianRechargeServiceImpl.java

@@ -140,6 +140,10 @@ public class AfDianRechargeServiceImpl implements AfDianRechargeService {
 					.body(requestBody.toString())
 					.execute();
 			String body = response.body();
+			//虽然超时,但是任务已经提交
+			if (body.contains("Gateway time-out")) {
+				body = "Gateway time-out";
+			}
 			log.info("任务提交响应: {}", body);
 			if (body.contains("Please try signing in again")) {
 				throw BusinessRuntimeException.getInstance("token凭证已过期");