Commit 032a79da by 王悦

add fqtm2es

parent ab21549a
//tag规则 release-v188.20.* 同步峰擎商标到es
const TaskBase = require("../../task.base");
const system = require("../../../system");
var settings = require("../../../../config/settings");
class Fqtm2es extends TaskBase {
constructor() {
super(TaskBase.getServiceName(Fqtm2es));
this.restclient = system.getObject("util.restClient");
}
async beforeTask(params) {
console.log("前置操作......", this.serviceName);
}
async subDoTask() {
console.log("--------------");
console.log("TestTask1.....");
var obj = {
}
try {
var url = settings.fqbossUrl() + "api/trademark/tradeMarkSync";
var rtn = await this.restclient.execPost(obj, url);
console.log(rtn);
return rtn;
} catch (error) {
console.log(error);
return null;
}
}
}
module.exports = Fqtm2es;
\ No newline at end of file
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