|
...
|
...
|
@@ -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(),
|
...
|
...
|
|