Commit aad96e60 by 王悦

fix

parent 8f561376
......@@ -6,7 +6,6 @@ const CtlBase = require("../../ctl.base");
const logCtl = system.getObject("web.common.oplogCtl");
const tmtransactionPath = "/api/action/tmQuery/springBoard";
const tmurl = settings.channelApiUrl() + tmtransactionPath;
//标源检索
class searchCtl extends CtlBase {
constructor() {
......@@ -53,15 +52,9 @@ class searchCtl extends CtlBase {
query.actionBody.tmName = p.search.sbmc
}
} else return;
let tokenInfo = await this.service.getToken();
try {
let rtn = await this.execClient.execPostTK(query, tmurl, tokenInfo.data.token);
let data = rtn.data;
} catch (e) {
return system.getResultFail(-8, e)
}
try {
let published = await this.service.findAll({company_id: p.company_id});
data.rows.forEach(item => {
for (let t of published) {
......@@ -70,9 +63,6 @@ class searchCtl extends CtlBase {
}
});
return system.getResultList(data.count, data.rows)
} catch (e) {
return system.getResultFail(-9, e)
}
}
}
......
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