Commit fa739f26 by 任晓松

udpate

parent bcca4b5b
...@@ -87,7 +87,7 @@ class IcbcService extends AppServiceBase { ...@@ -87,7 +87,7 @@ class IcbcService extends AppServiceBase {
} }
let ret = await this.opReqResult(url, params, req); let ret = await this.opReqResult(url, params, req);
if (ret.status != 1) { if (ret.status != 1) {
system.getResultFail(-1, '获取开放平台token失败'); return system.getResultFail(-1, '获取开放平台token失败');
} }
let token = ret.data; let token = ret.data;
...@@ -98,7 +98,6 @@ class IcbcService extends AppServiceBase { ...@@ -98,7 +98,6 @@ class IcbcService extends AppServiceBase {
"name": queryobj.companyName "name": queryobj.companyName
}; };
let rtn = await this.execClient.restGetWithHAuthorizationUrl(token, url, data); let rtn = await this.execClient.restGetWithHAuthorizationUrl(token, url, data);
if (!rtn || !rtn.stdout) { if (!rtn || !rtn.stdout) {
return system.getResult(null, "restPostWithHAuthorizationUrl data is empty"); return system.getResult(null, "restPostWithHAuthorizationUrl data is empty");
}; };
...@@ -110,7 +109,6 @@ class IcbcService extends AppServiceBase { ...@@ -110,7 +109,6 @@ class IcbcService extends AppServiceBase {
return system.getResultFail(-1, '查询失败'); return system.getResultFail(-1, '查询失败');
} }
let item = result.result.items; let item = result.result.items;
//对结果处理 //对结果处理
// "Tag": 1为qichacha,0为gsb // "Tag": 1为qichacha,0为gsb
var setValue = {}; var setValue = {};
...@@ -119,7 +117,7 @@ class IcbcService extends AppServiceBase { ...@@ -119,7 +117,7 @@ class IcbcService extends AppServiceBase {
// this.restClient.hmset(this.disposeCertificationData, setValue); // this.restClient.hmset(this.disposeCertificationData, setValue);
// } // }
this.restClient.hmset(this.searchCertificationData, setValue); this.restClient.hmset(this.searchCertificationData, setValue);
return system.getResult(items); return system.getResult(item);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment