Sfoglia il codice sorgente

更新 session_key获取逻辑

wzh 4 anni fa
parent
commit
f06fc7089b
2 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 0 1
      miniprogram/app.js
  2. 1 0
      miniprogram/pages/index/index.js

+ 0 - 1
miniprogram/app.js

@@ -31,7 +31,6 @@ App({
     wx.cloud.init({
       traceUser: true
     })
-    wxSetSessionKey()
     this.globalData = {}
   },
 })

+ 1 - 0
miniprogram/pages/index/index.js

@@ -22,6 +22,7 @@ Page({
   },
 
   async login() {
+    wxSetSessionKey()
     let res1 = await postApi("/user/wx/openId/login", {
       openId: wx.getStorageSync('openId')
     })