|
...
|
...
|
@@ -75,9 +75,9 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
|
|
let param = "";
|
|
|
|
for (let key in data) {
|
|
|
|
let val = data[key];
|
|
|
|
if (val !== "" && val !== null) {
|
|
|
|
param += '&' + key + '=' + val
|
|
|
|
}
|
|
|
|
//if (val !== "" && val !== null) {
|
|
|
|
param += '&' + key + '=' + val
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
let cache_key = act;
|
|
|
|
if (param) {
|
|
...
|
...
|
@@ -147,7 +147,7 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr |
|
|
|
'content-type': 'application/x-www-form-urlencoded'
|
|
|
|
},
|
|
|
|
success: function (res) {
|
|
|
|
console.log('request.api[' + (new Date() - stime) + 'ms]==>', host + cache_key + ('&formids=' + formids.toString()) + '\nrequest.success', res.data);
|
|
|
|
console.log('request.api[' + (new Date() - stime) + 'ms]==>', host + cache_key + '\nrequest.success', res.data);
|
|
|
|
// return;
|
|
|
|
//bot.msg({url: host + cache_key, res: res.data})
|
|
|
|
if (res.data) {
|
...
|
...
|
|