From 4201a2237ac7b724989e93f8ac4ae16da2800528 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 30 七月 2024 17:00:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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