Commit 1a476812 by 庄冰

aaa

parent d021b43b
...@@ -3,9 +3,9 @@ var system = require("../../../system"); ...@@ -3,9 +3,9 @@ var system = require("../../../system");
class TmQueryAPI extends APIBase { class TmQueryAPI extends APIBase {
constructor() { constructor() {
super(); super();
this.tmqueryApi = system.getObject("api.trademark.tmqueryApi"); // this.tmqueryApi = system.getObject("api.trademark.tmqueryApi");
this.tmquerySve = system.getObject("service.trademark.tmquerySve"); this.tmquerySve = system.getObject("service.trademark.tmquerySve");
this.toolApi = system.getObject("api.tool.toolApi"); // this.toolApi = system.getObject("api.tool.toolApi");
this.toolSve = system.getObject("service.trademark.toolSve"); this.toolSve = system.getObject("service.trademark.toolSve");
} }
/** /**
...@@ -99,6 +99,9 @@ class TmQueryAPI extends APIBase { ...@@ -99,6 +99,9 @@ class TmQueryAPI extends APIBase {
// opResult = await this.toolApi.bycznfx(action_body); // opResult = await this.toolApi.bycznfx(action_body);
opResult = system.getResultSuccess(null, "商标方案确认成功"); opResult = system.getResultSuccess(null, "商标方案确认成功");
break; break;
case "icheming"://商标智能分析 -----
opResult = await this.toolSve.icheming(action_body, req);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
...@@ -60,7 +60,11 @@ class ToolService { ...@@ -60,7 +60,11 @@ class ToolService {
var url = this.zcApiUrl + "api/tool/toolApi/adjustWTSSize"; var url = this.zcApiUrl + "api/tool/toolApi/adjustWTSSize";
return await this.opReqResult(url, queryobj, req); return await this.opReqResult(url, queryobj, req);
} }
//工商核名
async icheming(queryobj, req) {
var url = this.zcApiUrl + "api/trademark/tmqueryApi/icheming";
return await this.opReqResult(url, queryobj, req);
}
async opReqResult(reqUrl, queryobj, req) { async opReqResult(reqUrl, queryobj, req) {
var rtn = await this.execClient.execPushDataPost(queryobj, reqUrl, req.headers["token"], req.headers["request-id"]); var rtn = await this.execClient.execPushDataPost(queryobj, reqUrl, req.headers["token"], req.headers["request-id"]);
var data = JSON.parse(rtn.stdout); var data = JSON.parse(rtn.stdout);
......
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