Commit e0053723 by 王悦

fix

parent aad96e60
......@@ -53,9 +53,21 @@ class searchCtl extends CtlBase {
}
} else return;
let tokenInfo = await this.service.getToken();
let rtn = await this.execClient.execPostTK(query, tmurl, tokenInfo.data.token);
let rtn
try {
rtn = await this.execClient.execPostTK(query, tmurl, tokenInfo.data.token);
}catch (e) {
return system.getResultFail(-2,e)
}
let data = rtn.data;
let published = await this.service.findAll({company_id: p.company_id});
let published
try {
published = await this.service.findAll({company_id: p.company_id});
}catch (e) {
return system.getResultFail(-3,e)
}
data.rows.forEach(item => {
for (let t of published) {
if (t.tm_code == item.sbzch)
......
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