Commit 7cd66b07c58e6143cceade2a92ffbda6012569f7

Authored by yvan.ni
1 parent 87bfec95

1. 在调用接口获取会员信息的时候,要用随机码,避免接口的缓存

Showing 1 changed file with 2 additions and 0 deletions
utils/auth.js
... ... @@ -128,6 +128,7 @@ module.exports = {
128 128 var app_d = this.app().globalData, oo = app_d.setting;
129 129 var ab = this.app().request;
130 130 ab.get("/api/weshop/users/get/" + oo.stoid + "/" + app_d.user_id, {
  131 + data:{r:Math.random()},
131 132 success: function (e) {
132 133 app_d.userInfo = e.data.data;
133 134 "function" == typeof t && t(e.data.data);
... ... @@ -140,6 +141,7 @@ module.exports = {
140 141 if (app_d.user_id != "" && app_d.user_id != null ){
141 142 var ab = this.app().request;
142 143 ab.get("/api/weshop/users/get/" + oo.stoid+"/"+app_d.user_id, {
  144 + data:{r:Math.random()},
143 145 success: function (e) {
144 146 app_d.userInfo = e.data.data;
145 147 "function" == typeof t && t(e.data.data);
... ...