Commit 9e1465a0 by 王悦

fix

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