|
@@ -147,7 +147,8 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
@@ -147,7 +147,8 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
147
|
'content-type': 'application/x-www-form-urlencoded'
|
147
|
'content-type': 'application/x-www-form-urlencoded'
|
|
148
|
},
|
148
|
},
|
|
149
|
success: function (res) {
|
149
|
success: function (res) {
|
|
150
|
- console.log('request.api[' + (new Date() - stime) + 'ms]==>', host + cache_key + '\nrequest.success', res.data);
|
150
|
+ let hs=(new Date() - stime)
|
|
|
|
151
|
+ console.log('request.api[' + hs + 'ms]==>', host + cache_key + '\nrequest.success', res.data);
|
|
151
|
// return;
|
152
|
// return;
|
|
152
|
//bot.msg({url: host + cache_key, res: res.data})
|
153
|
//bot.msg({url: host + cache_key, res: res.data})
|
|
153
|
if (res.data) {
|
154
|
if (res.data) {
|
|
@@ -193,6 +194,10 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
@@ -193,6 +194,10 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
193
|
}
|
194
|
}
|
|
194
|
},
|
195
|
},
|
|
195
|
complete: function () {
|
196
|
complete: function () {
|
|
|
|
197
|
+ let hs=(new Date() - stime)
|
|
|
|
198
|
+ if (wx.canIUse('reportPerformance')) {
|
|
|
|
199
|
+ wx.reportPerformance(1001, hs)
|
|
|
|
200
|
+ }
|
|
196
|
wx.hideLoading();
|
201
|
wx.hideLoading();
|
|
197
|
}
|
202
|
}
|
|
198
|
})
|
203
|
})
|