yonge 1 anno fa
parent
commit
55d6a5b88a

+ 10 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentPaymentOrderServiceImpl.java

@@ -1029,8 +1029,16 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
                     }
                 }
             }
-        }else if (StringUtils.equals(paymentChannel, "YQPAY")) {
-        	
+        }else if (StringUtils.equals(paymentChannel, "YEEPAY")) {
+        	OrderQueryYopQueryOrderResDTOResult result = yeepayPaymentService.queryOrder(hfMerchantConfig.getAppId(), hfMerchantConfig.getPlatformPayeeMemberId(), studentPaymentOrder.getMerNos(), orderNo);
+        	String status = result.getStatus();
+        	if (status.equals("SUCCESS")) {
+                return PayStatus.SUCCESSED;
+            } else if (status.equals("TIME_OUT") || status.equals("FAIL") || status.equals("CLOSE")) {
+                return PayStatus.FAILED;
+            } else {
+                return PayStatus.PAYING;
+            }
         }
         throw new BizException("支付渠道错误");
     }