Authored by mali

商家端漏洞修改

... ... @@ -384,7 +384,8 @@ function __sendRequest(options, success, fail, wlen, i, args) {
if (!options.outobj) {
obj = JSON.parse(body)
if (!(typeof obj == "object")) {
_err_.message = "Error[json parse@" + options.title + "--"+options.url+"]:" + body;
//_err_.message = "Error[json parse@" + options.title + "--"+options.url+"]:" + body; // 返回给页面的消息不能含有服务器的ip等信息
_err_.message = "Error[json parse@" + options.title + "]:" + body;
console.info(_err_.message);
console.error(_err_);
wlen.len = 0;
... ... @@ -395,7 +396,8 @@ function __sendRequest(options, success, fail, wlen, i, args) {
obj = options.outobj.toLocaleUpperCase().indexOf("BODY")>-1?body:response;
}
} else {
_err_.message = "Error[response state @" + options.title + "--"+options.url+"]:" + response.statusCode;
//_err_.message = "Error[response state @" + options.title + "--"+options.url+"]:" + response.statusCode; // 返回给页面的消息不能含有服务器的ip等信息
_err_.message = "Error[response state @" + options.title +"]:" + response.statusCode;
console.info(_err_.message);
console.error(_err_);
wlen.len = 0;
... ...