Hanson / vbot

微信,企微,机器人,企业微信,企微机器人,微信机器人,小红书,美团,美团爬虫,聚合聊天,RPA,协议,hook,逆向,群发,自动回复,chatgpt,API对接,稳定防封全语言通用,企业定制/SCRM/SAAS专用
MIT License
4.06k stars 711 forks source link

Unexpected result at getLogin() #204

Open jejeso opened 7 years ago

jejeso commented 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.

Smurfs-xxl commented 7 years ago

我也遇到了。