소스 검색

修改参数

lex 1 년 전
부모
커밋
99b7a60ccc
1개의 변경된 파일1개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 8
      src/components/MPayment.vue

+ 1 - 8
src/components/MPayment.vue

@@ -130,14 +130,7 @@ export default {
       } else {
         url += `/#/payResult`;
       }
-      // 为了处理特殊字符  &not
-      const temp = this.paymentObject;
-      const { notifyUrl, ...more } = temp?.payMap;
-      temp.payMap = {
-        ...more,
-        onotifyUrl: notifyUrl,
-      };
-      url += `?payType=${this.pay_channel}&payment=${JSON.stringify(temp)}&platform=teacher`;
+      url += `?payType=${this.pay_channel}&payment=${JSON.stringify(this.paymentObject)}&platform=teacher`;
       this.$emit("onChangeStatus", false); // 初始化弹窗状态
       window.location.href = url;
     },