异步Execute
这个提交包含在:
25
Debug.js
25
Debug.js
@ -165,15 +165,22 @@ exports.add={
|
|||||||
command = command.replace("]","]");
|
command = command.replace("]","]");
|
||||||
command = command.replace("&","&");
|
command = command.replace("&","&");
|
||||||
var time = process.uptime();
|
var time = process.uptime();
|
||||||
try{
|
|
||||||
eval(command);
|
new Promise(()=>{
|
||||||
}catch(error){
|
try{
|
||||||
Core.frame.SendMsg(connect,info,error);
|
eval(command);
|
||||||
console.log(error);
|
}catch(error){
|
||||||
}
|
Core.frame.SendMsg(connect,info,error);
|
||||||
var te2 = process.uptime() - time;
|
console.log(error);
|
||||||
Debug.SaveVar();
|
}
|
||||||
Core.frame.SendMsg(connect,info,`指令执行完毕,共耗时${te2}秒`);
|
var te2 = process.uptime() - time;
|
||||||
|
Debug.SaveVar();
|
||||||
|
Core.frame.SendMsg(connect,info,`指令执行完毕,共耗时${te2}秒`);
|
||||||
|
return void 0;
|
||||||
|
}).catch((reason)=>{
|
||||||
|
Core.frame.SendMsg(connect,info,reason);
|
||||||
|
console.log(reason);
|
||||||
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Temp1 == "说明书"||Temp1 == "用户手册"||Temp1 == "帮助"){
|
if(Temp1 == "说明书"||Temp1 == "用户手册"||Temp1 == "帮助"){
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户