Commit b5fb03ef by 王悦

fix

parent 16455da3
...@@ -5,7 +5,7 @@ let settings = require("../../../../config/settings"); ...@@ -5,7 +5,7 @@ let settings = require("../../../../config/settings");
const CtlBase = require("../../ctl.base"); const CtlBase = require("../../ctl.base");
const logCtl = system.getObject("web.common.oplogCtl"); const logCtl = system.getObject("web.common.oplogCtl");
const tmtransactionPath = "/api/action/tmQuery/springBoard"; const tmtransactionPath = "/api/action/tmQuery/springBoard";
const tmurl = settings.centerChannelUrl() + tmtransactionPath; const tmurl = settings.channelApiUrl() + tmtransactionPath;
//标源检索 //标源检索
class searchCtl extends CtlBase { class searchCtl extends CtlBase {
constructor() { constructor() {
...@@ -53,6 +53,9 @@ class searchCtl extends CtlBase { ...@@ -53,6 +53,9 @@ class searchCtl extends CtlBase {
} }
} else return; } else return;
let tokenInfo = await this.service.getToken(); let tokenInfo = await this.service.getToken();
console.log("==========================>",tokenInfo)
console.log("==========================>",tokenInfo.data.token)
try {
let rtn = await this.execClient.execPostTK(query, tmurl, tokenInfo.data.token); let rtn = await this.execClient.execPostTK(query, tmurl, tokenInfo.data.token);
let data = rtn.data; let data = rtn.data;
let published = await this.service.findAll({company_id: p.company_id}); let published = await this.service.findAll({company_id: p.company_id});
...@@ -63,6 +66,10 @@ class searchCtl extends CtlBase { ...@@ -63,6 +66,10 @@ class searchCtl extends CtlBase {
} }
}); });
return system.getResultList(data.count, data.rows) return system.getResultList(data.count, data.rows)
}catch (e) {
console.log("=======================>",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