forked from mirror/MCSM-Daemon
修复 使用终端输入编码向终端发送命令
This commit is contained in:
parent
aadfee16ed
commit
a325f74adc
@ -34,7 +34,7 @@ export default class GeneralSendCommand extends InstanceCommand {
|
||||
if (!instance.process) {
|
||||
instance.failure(new Error("命令执行失败,因为实例实际进程不存在."));
|
||||
}
|
||||
instance.process.write(encode(text, instance.config.oe));
|
||||
instance.process.write(encode(text, instance.config.ie));
|
||||
instance.process.write("\n");
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +32,6 @@ export default class GeneralInputCommand extends InstanceCommand {
|
||||
if (!instance.process) {
|
||||
instance.failure(new Error("命令执行失败,因为实例实际进程不存在."));
|
||||
}
|
||||
instance.process.write(encode(text, instance.config.oe));
|
||||
instance.process.write(encode(text, instance.config.ie));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user