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 @@ -75,9 +75,9 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr
75 let param = ""; 75 let param = "";
76 for (let key in data) { 76 for (let key in data) {
77 let val = data[key]; 77 let val = data[key];
78 - if (val !== "" && val !== null) {  
79 - param += '&' + key + '=' + val  
80 - } 78 + //if (val !== "" && val !== null) {
  79 + param += '&' + key + '=' + val
  80 + //}
81 } 81 }
82 let cache_key = act; 82 let cache_key = act;
83 if (param) { 83 if (param) {
@@ -147,7 +147,7 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr @@ -147,7 +147,7 @@ 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 + ('&formids=' + formids.toString()) + '\nrequest.success', res.data); 150 + console.log('request.api[' + (new Date() - stime) + 'ms]==>', host + cache_key + '\nrequest.success', res.data);
151 // return; 151 // return;
152 //bot.msg({url: host + cache_key, res: res.data}) 152 //bot.msg({url: host + cache_key, res: res.data})
153 if (res.data) { 153 if (res.data) {