From 248401a5f4e0d7bd15612ff56d7b2a153b642f03 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Wed, 14 Jun 2023 17:30:06 +0800 Subject: [PATCH] 测试user_id --- app.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app.js b/app.js index ac91e1d..ad6b2b7 100644 --- a/app.js +++ b/app.js @@ -135,15 +135,15 @@ App({ } }) } - - else if(app.globalData.user_id){ //启用默认的user_id - app.promiseGet("/api/weshop/users/get/" + app.globalData.setting.stoid + "/" + app.globalData.user_id,{}).then(res=>{ - if(res.data.code==0){ - app.globalData.userInfo = res.data.data; - wx.setStorageSync("userinfo",app.globalData.userInfo); - } - }) - } + + // else if(app.globalData.user_id){ //-- 启用默认的user_id -- + // app.promiseGet("/api/weshop/users/get/" + app.globalData.setting.stoid + "/" + app.globalData.user_id,{}).then(res=>{ + // if(res.data.code==0){ + // app.globalData.userInfo = res.data.data; + // wx.setStorageSync("userinfo",app.globalData.userInfo); + // } + // }) + // } } wx.getSystemInfo({ success: (res) => { -- libgit2 0.21.4