bayi 1 rok temu
rodzic
commit
d74a98394a
1 zmienionych plików z 13 dodań i 13 usunięć
  1. 13 13
      小咖秀公众号支付/index.html

+ 13 - 13
小咖秀公众号支付/index.html

@@ -183,6 +183,19 @@
         if (uid) {
         if (uid) {
           this.uid = uid
           this.uid = uid
         }
         }
+        if (first) {
+          axios({
+            method: 'post',
+            url: 'https://reader-api.ai160.com/wx/userEvent/v2',
+            headers: {
+              uid: this.uid,
+              channelCode: '3001'
+            },
+            data: {
+              action: 'IOS_PAY_ENTER'
+            }
+          })
+        }
         if (code) {
         if (code) {
           this.code = code
           this.code = code
           axios({
           axios({
@@ -201,19 +214,6 @@
         } else {
         } else {
           this.getWxCode()
           this.getWxCode()
         }
         }
-        if (first) {
-          axios({
-            method: 'post',
-            url: 'https://reader-api.ai160.com/wx/userEvent/v2',
-            headers: {
-              uid: this.uid,
-              channelCode: '3001'
-            },
-            data: {
-              action: 'IOS_PAY_ENTER'
-            }
-          })
-        }
       },
       },
       methods: {
       methods: {
         selected(e) {
         selected(e) {