Open jejeso opened 7 years ago
/vbot/vendor/hanson/vbot/src/Core/Server.php
` /** * login wechat. * * @throws \Exception */ private function getLogin() { $content = $this->vbot->http->get($this->vbot->config['server.uri.redirect']); $data = (array) simplexml_load_string($content, 'SimpleXMLElement', LIBXML_NOCDATA); print_r($data); echo "\n"; $this->vbot->config['server.skey'] = $data['skey']; $this->vbot->config['server.sid'] = $data['wxsid']; $this->vbot->config['server.uin'] = $data['wxuin']; $this->vbot->config['server.passTicket'] = $data['pass_ticket'];
` Here prints the $data I've got:
[2017-08-12 21:15:55][INFO] please scan the qrCode with wechat. [2017-08-12 21:16:00][INFO] please confirm login in wechat. Array ( [ret] => 1203 [message] => 当前登录环境异常。为了你的帐号安全,暂时不能登录web微信。你可以通过手机客户端或者windows微信登录。 ) [2017-08-12 21:16:02] vbot.ERROR: Undefined index: skey [] [] PHP Fatal error: Uncaught ErrorException: Undefined index: skey in /var/www/spool/vbot/vendor/hanson/vbot/src/Core/Server.php:193
where I immediately logon on the browser at http://wx.qq.com, there is no error reported.
我也遇到了。
/vbot/vendor/hanson/vbot/src/Core/Server.php
` Here prints the $data I've got:
where I immediately logon on the browser at http://wx.qq.com, there is no error reported.