Commit e56afdbf by 王栋源

wdy

parent f6956e2f
...@@ -24,6 +24,7 @@ class ExecClient { ...@@ -24,6 +24,7 @@ class ExecClient {
async execPostTK(subData, url, token) { async execPostTK(subData, url, token) {
let cmd = this.FetchPostTK(subData, url, token); let cmd = this.FetchPostTK(subData, url, token);
console.log(cmd);
var result = await this.exec(cmd, { var result = await this.exec(cmd, {
maxBuffer: 1024 * 1024 * 15 maxBuffer: 1024 * 1024 * 15
}); });
...@@ -31,7 +32,10 @@ class ExecClient { ...@@ -31,7 +32,10 @@ class ExecClient {
if (rtn) { if (rtn) {
return JSON.parse(rtn); return JSON.parse(rtn);
} else { } else {
return null; return {
data: cmd,
status: -1
};
} }
} }
FetchPostTK(subData, url, token) { FetchPostTK(subData, url, token) {
......
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