diff --git a/app.js b/app.js index 5e8c6b0..65bde82 100644 --- a/app.js +++ b/app.js @@ -51,7 +51,7 @@ App({ config: null, //门店参数 config2: null, //门店配置 code: null, - user_id:null,//15240065,//6520352,//6520390,//6520352 + user_id:null,//6520390,//6520352 // user_id:6520314,// qa-6519858,// // user_id:14148118,// qa-6519858,// buy_now: null, @@ -124,6 +124,7 @@ App({ getApp().globalData.guide_id = res.data.data.id; } }) + app.promiseGet("/api/weshop/users/getAndUpdateUser/" +user.store_id + "/" + user.user_id, {}) } wx.setStorageSync("userinfo", user); @@ -140,6 +141,8 @@ App({ if(res.data.code==0){ app.globalData.userInfo = res.data.data; wx.setStorageSync("userinfo",app.globalData.userInfo); + //刷一下导购 + app.promiseGet("/api/weshop/users/getAndUpdateUser/" +app.globalData.setting.stoid + "/" + app.globalData.user_id, {}) } }) }