Commit 137c366b by 王悦

去掉队列调用

parent 2209e01b
......@@ -89,16 +89,20 @@ class TrademarkCtl extends CtlBase {
*/
async publish(p, q, req) {
let body = {
"tm": p
"actionType": "tmBatchUpload",
"actionBody": {
"tm": p
}
};
let rtn = await pushClient(body);
if (rtn.status == 1) {
let rtn = await this.execClient.execPost(body, tmurl);
let data = JSON.parse(rtn.stdout);
if (data.status == 1) {
let tradedb = [];
p.map(db => tradedb.push({
data.data.map(db => tradedb.push({
opath: p.opath,
user_id: p.userid,
company_id: p.company_id,
// trademark_id: db.id,
trademark_id: db.id,
tm_code: db.code
}));
rtn = await this.service.bulkCreate(tradedb);
......
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