Commit 248401a5f4e0d7bd15612ff56d7b2a153b642f03
1 parent
75ed6533
测试user_id
Showing
1 changed file
with
9 additions
and
9 deletions
app.js
| ... | ... | @@ -135,15 +135,15 @@ App({ |
| 135 | 135 | } |
| 136 | 136 | }) |
| 137 | 137 | } |
| 138 | - | |
| 139 | - else if(app.globalData.user_id){ //启用默认的user_id | |
| 140 | - app.promiseGet("/api/weshop/users/get/" + app.globalData.setting.stoid + "/" + app.globalData.user_id,{}).then(res=>{ | |
| 141 | - if(res.data.code==0){ | |
| 142 | - app.globalData.userInfo = res.data.data; | |
| 143 | - wx.setStorageSync("userinfo",app.globalData.userInfo); | |
| 144 | - } | |
| 145 | - }) | |
| 146 | - } | |
| 138 | + | |
| 139 | + // else if(app.globalData.user_id){ //-- 启用默认的user_id -- | |
| 140 | + // app.promiseGet("/api/weshop/users/get/" + app.globalData.setting.stoid + "/" + app.globalData.user_id,{}).then(res=>{ | |
| 141 | + // if(res.data.code==0){ | |
| 142 | + // app.globalData.userInfo = res.data.data; | |
| 143 | + // wx.setStorageSync("userinfo",app.globalData.userInfo); | |
| 144 | + // } | |
| 145 | + // }) | |
| 146 | + // } | |
| 147 | 147 | } |
| 148 | 148 | wx.getSystemInfo({ |
| 149 | 149 | success: (res) => { | ... | ... |