From d5592767654f4fc59b572bab54de1d9202d994ea Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 15:11:35 +0800
Subject: [PATCH] ‘’

---
 wechat_jiaxuan/app.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/wechat_jiaxuan/app.js b/wechat_jiaxuan/app.js
index 4bb2f46..50a7179 100644
--- a/wechat_jiaxuan/app.js
+++ b/wechat_jiaxuan/app.js
@@ -27,10 +27,17 @@
     wx.login({
       timeout: 5000,
       success: (res) => {
+        var userId = null
+        if (op.query.scene) {
+          let temp = op.query.scene.split('_')
+          userId = temp[2]
+        }
         if (res.code) {
           //鍙戣捣缃戠粶璇锋眰
           wxLoginCustomer({
-            code: res.code
+            code: res.code,
+            userId
+
           }).then(res => {
             wx.setStorageSync('token', res.data.token)
             this.globalData.token = res.data.token

--
Gitblit v1.9.3