Commit 9e1465a0 by 王悦

fix

parent 2c4cf9c4
......@@ -144,12 +144,14 @@ class TrademarkCtl extends CtlBase {
body.upload_id = uploadid;
}
let rtn = await this.execClient.execPost(body, pushurl);
if (rtn.status == 1) {
console.log("=====================>批量发布返回", rtn);
let data = JSON.parse(rtn.stdout);
if (data.status == 1) {
let tradedb = [];
this.notify({
actionBody: {
resultInfo: {
data: rtn.data
data: data.data
},
messageBody: {
upload_id:uploadid
......@@ -166,9 +168,9 @@ class TrademarkCtl extends CtlBase {
tm_code: db.code,
upload_id: uploadid
}));
rtn = await this.service.bulkCreate(tradedb);
await this.service.bulkCreate(tradedb);
}
return system.getResult(rtn)
return system.getResultSuccess()
} catch (e) {
return system.getResultFail(-2, 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