mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
fix stdio
input
This commit is contained in:
parent
659078f9d6
commit
728a619bf8
|
@ -124,7 +124,9 @@ export default class ScheduleService {
|
|||
});
|
||||
|
||||
callbacks.onMessage?.((msg:string,conn:Connection)=>{
|
||||
cp.stdin.write(JSON.parse(msg).message)
|
||||
const { message } = JSON.parse(msg)
|
||||
if(!message) return
|
||||
cp.stdin.write(message + "\n")
|
||||
})
|
||||
} catch (error) {
|
||||
this.logger.error(
|
||||
|
|
Loading…
Reference in New Issue
Block a user