|
...
|
...
|
@@ -72,6 +72,7 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, |
|
|
|
if(api.openid){
|
|
|
|
data[api.openid]=data[api.openid]||openid;
|
|
|
|
}
|
|
|
|
let stime=new Date();
|
|
|
|
wx.request({
|
|
|
|
url: host+act,
|
|
|
|
method: 'POST',
|
|
...
|
...
|
@@ -84,7 +85,7 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, |
|
|
|
'content-type': 'application/x-www-form-urlencoded'
|
|
|
|
},
|
|
|
|
success: function (res) {
|
|
|
|
console.log('request.api==>',host+cache_key+'\nrequest.success',res.data);
|
|
|
|
console.log('request.api['+(new Date()-stime)+'ms]==>',host+cache_key+'\nrequest.success',res.data);
|
|
|
|
// return;
|
|
|
|
if(res.data){
|
|
|
|
if(cachetime!=0 && res.data.ret==200){
|
...
|
...
|
|