Commit ec06dc606fc04fdeca7564d7e18beba2d338e691

Authored by vking
1 parent 2999a763

rebot

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