Commit f2ba0604948e1d76ecadedd04c58f8313da2c71e

Authored by wangfan
1 parent 151e13b1

地图优化

Showing 1 changed file with 2 additions and 1 deletions
... ... @@ -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){
... ...