|
...
|
...
|
@@ -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;
|
...
|
...
|
|