Commit 1f8f1e25 by 庄冰

queue

parent 9b08b49d
...@@ -97,7 +97,8 @@ class FormsubmitrecordService extends ServiceBase { ...@@ -97,7 +97,8 @@ class FormsubmitrecordService extends ServiceBase {
"identifyCode": "marketplat-pushneed2fq",// Y 操作的业务标识 "identifyCode": "marketplat-pushneed2fq",// Y 操作的业务标识
"messageBody": { // Y 推送的业务消息,必须有一项对象属性值 "messageBody": { // Y 推送的业务消息,必须有一项对象属性值
"id": id "id": id
} },
"headData":{"xappkey": "f6b59b74-f943-4735-bb86-e05d6b7fdwsv"} //N 请求头信息,Json格式,如:{token:"XXXXXXX"}
} }
}; };
var result = await this.execClient.execPost(obj, url); var result = await this.execClient.execPost(obj, url);
......
...@@ -4,7 +4,7 @@ const exec = util.promisify(require('child_process').exec); ...@@ -4,7 +4,7 @@ const exec = util.promisify(require('child_process').exec);
class ExecClient { class ExecClient {
constructor() { constructor() {
this.cmdPostPattern = "curl -k -H 'Content-type: application/json' -H 'xappkey: f6b59b74-f943-4735-bb86-e05d6b7fdwsv' -d '{data}' {url}"; this.cmdPostPattern = "curl -k -H 'Content-type: application/json' -d '{data}' {url}";
this.cmdGetPattern = "curl -G -X GET '{url}'"; this.cmdGetPattern = "curl -G -X GET '{url}'";
this.cmdPostPatternEs = "curl --user admines:adminGSBes. -k -H 'Content-type: application/json' -d '{data}' {url}"; this.cmdPostPatternEs = "curl --user admines:adminGSBes. -k -H 'Content-type: application/json' -d '{data}' {url}";
......
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