Commit fbe314e8f5f5a9ca7e6a9c0d75d207d7c1f4b71b

Authored by vking
1 parent 7c9e9aec

welcome

Showing 1 changed file with 7 additions and 2 deletions
... ... @@ -167,9 +167,14 @@ App({
}
},
async getOpenid(app_unionid=''){
let openid=wx.getStorageSync('customer_openid');
if(!openid){
let openid=''
if(app_unionid){
openid= await this._getOpenid(app_unionid);
}else{
openid=wx.getStorageSync('customer_openid');
if(!openid){
openid= await this._getOpenid(app_unionid);
}
}
this.openid=openid
return openid;
... ...