Commit 03d12fdd0b46eeac1414c4d0f48ba313067569e9

Authored by wangfan
1 parent ca2cdb22

customer

Showing 1 changed file with 2 additions and 2 deletions
... ... @@ -84,7 +84,7 @@ App({
},
success: function (res) {
let openid=res.data.data.openid;
wx.setStorage({key:'openid',data:openid});
wx.setStorage({key:'customer_openid',data:openid});
success(openid);
},
fail: function (res) {
... ... @@ -104,7 +104,7 @@ App({
}
},
async getOpenid(){
let openid=wx.getStorageSync('openid');
let openid=wx.getStorageSync('customer_openid');
if(!openid){
openid= await this._getOpenid();
}
... ...