|
@@ -23,6 +23,7 @@ import com.ym.mec.thirdparty.yqpay.YqPayFeignService;
|
|
|
import com.ym.mec.thirdparty.yqpay.YqPayUtil;
|
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
|
|
|
|
+import com.ym.mec.util.date.DateUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
@@ -161,7 +162,6 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
if (payingOrders.size() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
List<String> orderNoList = new ArrayList<String>();
|
|
|
|
|
|
for (StudentPaymentOrder payingOrder : payingOrders) {
|
|
@@ -185,7 +185,8 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
rpMap.put("tradeState", "0");
|
|
|
}
|
|
|
|
|
|
- if (status.equals("succeeded")) {
|
|
|
+ if (status.equals("succeeded") ||
|
|
|
+ (status.equals("failed") && payingOrder.getCreateTime().before(DateUtil.addMinutes(new Date(),-60)))) {
|
|
|
try {
|
|
|
updateOrder(rpMap); //更新订单
|
|
|
} catch (Exception e) {
|