Commit eb660546 by Sxy

fix: bug

parent 8f12e877
...@@ -8,7 +8,6 @@ const moment = require('moment'); ...@@ -8,7 +8,6 @@ const moment = require('moment');
const System = require("../../../system"); const System = require("../../../system");
const toFtClient = require("../../../utils/toFtClient"); const toFtClient = require("../../../utils/toFtClient");
const appconfig = system.getSysConfig(); const appconfig = system.getSysConfig();
const sha235 = require("sha256");
const { getResult } = require("../../../system"); const { getResult } = require("../../../system");
class DeliverybillCtl extends CtlBase { class DeliverybillCtl extends CtlBase {
constructor() { constructor() {
...@@ -366,29 +365,4 @@ class DeliverybillCtl extends CtlBase { ...@@ -366,29 +365,4 @@ class DeliverybillCtl extends CtlBase {
} }
module.exports = DeliverybillCtl; module.exports = DeliverybillCtl;
\ No newline at end of file
var task = new DeliverybillCtl();
var obj = {
"requestId": "1111111",
"bizId": 2592748677,
"status": "inservice",
"serviceStartTime": "today",
"serviceEndTime": "tomorrow",
}
task.notifyServiceStatusChange({ actionBody: obj }, {}, {}).then(d => {
console.log(JSON.stringify(d));
})
// (async () => {
// var task = new DeliverybillCtl();
// var obj = {
// "deliverId":"1111111",
// "company1": "华为技术有限公司",
// "company2": "中兴通讯股份有限公司",
// "keyword1":"用户设备,通信领域,通信技术,设备发送,指示信息,通信系统,通信方法,设备接收,对应关系,基站发送,终端发送,用户体验,配置信息,请求消息,数据传输方法,用户终端,网络侧,移动终端,通信设备,传输方法",
// "keyword2":"用户体验,移动终端,用户设备,相关技术,网络侧,终端发送,用户终端,配置信息,指示信息,请求消息,对应关系,传输方法,基站发送,通信系统,数据传输方法,通信领域,通信技术,设备发送,响应消息,发送方法"
// };
// var d = await task.deliverInfo(obj,{},{})
// console.log("dddddd---------" + JSON.stringify(d));
// })()
...@@ -377,7 +377,7 @@ class System { ...@@ -377,7 +377,7 @@ class System {
headData json 请求头信息 headData json 请求头信息
requestId string 请求id requestId string 请求id
*/ */
static queueOper(obj) { static async queueOper(obj) {
if (obj.pushUrl && obj.actionType && obj.messageBody) { if (obj.pushUrl && obj.actionType && obj.messageBody) {
try { try {
var exec = this.getObject("util.execClient"); var exec = this.getObject("util.execClient");
...@@ -403,13 +403,13 @@ class System { ...@@ -403,13 +403,13 @@ class System {
var result = await exec.execPost(param, reqUrl); var result = await exec.execPost(param, reqUrl);
var j = JSON.parse(result.stdout); var j = JSON.parse(result.stdout);
if (j.status == 1){ if (j.status == 1) {
return this.getResult(j); return this.getResult(j);
} }
else{ else {
return this.getResultError("队列返回失败"); return this.getResultError("队列返回失败");
} }
} }
catch (error) { catch (error) {
return this.getResultError(error); return this.getResultError(error);
......
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