Commit 87ff6cd6 by 王勇飞

gyq

parent 89c19867
...@@ -377,10 +377,10 @@ class System { ...@@ -377,10 +377,10 @@ 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 rc = this.getObject("util.execClient");
var reqUrl = settings.queueUrl; var reqUrl = settings.queueUrl;
var param = { var param = {
actionType: "produceData", actionType: "produceData",
...@@ -401,7 +401,7 @@ class System { ...@@ -401,7 +401,7 @@ class System {
param.requestId = obj.requestId; param.requestId = obj.requestId;
} }
var result = await exec.execPost(param, reqUrl); var result = await rc.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);
......
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