Commit 03d12fdd0b46eeac1414c4d0f48ba313067569e9

Authored by wangfan
1 parent ca2cdb22

customer

Showing 1 changed file with 2 additions and 2 deletions
@@ -84,7 +84,7 @@ App({ @@ -84,7 +84,7 @@ App({
84 }, 84 },
85 success: function (res) { 85 success: function (res) {
86 let openid=res.data.data.openid; 86 let openid=res.data.data.openid;
87 - wx.setStorage({key:'openid',data:openid}); 87 + wx.setStorage({key:'customer_openid',data:openid});
88 success(openid); 88 success(openid);
89 }, 89 },
90 fail: function (res) { 90 fail: function (res) {
@@ -104,7 +104,7 @@ App({ @@ -104,7 +104,7 @@ App({
104 } 104 }
105 }, 105 },
106 async getOpenid(){ 106 async getOpenid(){
107 - let openid=wx.getStorageSync('openid'); 107 + let openid=wx.getStorageSync('customer_openid');
108 if(!openid){ 108 if(!openid){
109 openid= await this._getOpenid(); 109 openid= await this._getOpenid();
110 } 110 }