Commit c4a374118aded3383f3ff0ad8f61b28bdbf4160c

Authored by vking
1 parent 6ec642e5

fix openid

... ... @@ -45,8 +45,8 @@ App({
this.shareTicket=opt.shareTicket;
}
this.getSystemInfo();
this.openid=await this.getOpenid();
console.log('this.openid',this.openid,mta);
//this.openid=await this.getOpenid();
//console.log('this.openid',this.openid,mta);
},
onShow:async function(){
//this._getOpenid();
... ...
... ... @@ -209,7 +209,7 @@ Page({
},
async getOpenid(){
let openid = getApp().openid;
let openid = await getApp().getOpenid();
return openid;
},
async SellerForOpenid(openid){
... ...
... ... @@ -119,7 +119,7 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr
return fail({msgSecCheck:true})
}
}
let openid = wx.getStorageSync('customer_openid');
let openid = await getApp().getOpenid();
let formids = wx.getStorageSync('formids');
if (formids) {
wx.removeStorage({key: 'formids'});
... ... @@ -136,6 +136,9 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr
if (api.openid) {
data[api.openid] = data[api.openid] || openid;
}
if(data['openid']==''){
data['openid']= openid;
}
let stime = new Date();
wx.request({
url: host + act+'&'+getSignQuery(),
... ...