|
@@ -119,7 +119,7 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
@@ -119,7 +119,7 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
119
|
return fail({msgSecCheck:true})
|
119
|
return fail({msgSecCheck:true})
|
|
120
|
}
|
120
|
}
|
|
121
|
}
|
121
|
}
|
|
122
|
- let openid = wx.getStorageSync('customer_openid');
|
122
|
+ let openid = await getApp().getOpenid();
|
|
123
|
let formids = wx.getStorageSync('formids');
|
123
|
let formids = wx.getStorageSync('formids');
|
|
124
|
if (formids) {
|
124
|
if (formids) {
|
|
125
|
wx.removeStorage({key: 'formids'});
|
125
|
wx.removeStorage({key: 'formids'});
|
|
@@ -136,6 +136,9 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
@@ -136,6 +136,9 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
136
|
if (api.openid) {
|
136
|
if (api.openid) {
|
|
137
|
data[api.openid] = data[api.openid] || openid;
|
137
|
data[api.openid] = data[api.openid] || openid;
|
|
138
|
}
|
138
|
}
|
|
|
|
139
|
+ if(data['openid']==''){
|
|
|
|
140
|
+ data['openid']= openid;
|
|
|
|
141
|
+ }
|
|
139
|
let stime = new Date();
|
142
|
let stime = new Date();
|
|
140
|
wx.request({
|
143
|
wx.request({
|
|
141
|
url: host + act+'&'+getSignQuery(),
|
144
|
url: host + act+'&'+getSignQuery(),
|