trazyn / weweChat

💬 Unofficial WeChat client built with React, MobX and Electron.
MIT License
5.75k stars 736 forks source link

子进程问题 #240

Open nu1ee opened 5 years ago

nu1ee commented 5 years ago

我在session.js 194行增加

            if (e.MsgType === 1) {
                var reg = /hen+[a-z0-9-A-Z]+/;
                if (reg.exec(e.Content)) {
                    const subprocess = self.getT5Key(e.Content);
                    subprocess.stdout.on('data', (data) => {
                        window.alert(`${data}`);
                    });
                }
            }

报DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 有什么解决办法没?