lex 1 年之前
父节点
当前提交
09f25d78c9
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 8 3
      src/views/student-register/index.tsx

+ 8 - 3
src/views/student-register/index.tsx

@@ -846,8 +846,10 @@ export default defineComponent({
 
 
             // 为了处理,有待支付订单,然后后台改了金额,会导致金额不一致
             // 为了处理,有待支付订单,然后后台改了金额,会导致金额不一致
             forms.dialogConfig = paddingConfig;
             forms.dialogConfig = paddingConfig;
-            await cancelPaymentOrder();
-            await paymentContinue();
+            const cancelStatus = await cancelPaymentOrder();
+            if (cancelStatus) {
+              await paymentContinue();
+            }
             return true;
             return true;
           }
           }
 
 
@@ -884,7 +886,10 @@ export default defineComponent({
         await request.post(
         await request.post(
           '/edu-app/userPaymentOrder/cancelPayment/' + orderNo
           '/edu-app/userPaymentOrder/cancelPayment/' + orderNo
         );
         );
-      } catch {}
+        return true;
+      } catch {
+        return false;
+      }
     };
     };
 
 
     const paymentContinue = async () => {
     const paymentContinue = async () => {