Commit f9f2e306 authored by Hsinli's avatar Hsinli

addd

parent 84dd47e4
Pipeline #13666 passed with stage
in 5 seconds
......@@ -296,6 +296,7 @@ class CommonService extends Service {
sign: md5(this.config.SHUHEMOFANG_APP_KEY + this.config.SHUHEMOFANG_APP_SECRET + timestamp),
}
let resp = await this.helper.send_request(this.config.SHUHEMOFANG_URL, params, { method: 'POST' });
ctx.logger.info({ resp: JSON.stringify(resp) });
return resp.data;
}
......@@ -305,6 +306,7 @@ class CommonService extends Service {
* @param {*} status 数盒魔方返回状态码
*/
async noticeShuhemofang(status) {
const { ctx } = this;
//异常情况
if (status === '2') {
ctx.failed('手机号已实名,身份证姓名均不匹配,请重新输入');
......@@ -355,9 +357,9 @@ class CommonService extends Service {
if (shmfList.length >= 5) {
ctx.failed('您输入的想要检测人数已超过最大限制,仅可检测输入过的检测信息');
} else {
let resp = this.queryShuhemofang(type, inputParams);
ctx.logger.info({ resp: JSON.stringify(resp) });
await this.noticeShuhemofang(resp.status);
let ret = this.queryShuhemofang(type, inputParams);
ctx.logger.info({ ret: JSON.stringify(ret) });
await this.noticeShuhemofang(ret.status);
}
}
}
......
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