GithubHelp home page GithubHelp logo

扫描登录,提示初始化失败 about vbot HOT 7 CLOSED

hanson avatar hanson commented on September 22, 2024
扫描登录,提示初始化失败

from vbot.

Comments (7)

jy4618272 avatar jy4618272 commented on September 22, 2024

init修改为:
protected function init($first = true)
{
$url = sprintf($this->baseUri . '/webwxinit?r=%d&lang=zh_CN&pass_ticket=%s', ~(time()*1e3), $this->passTicket);

    $content = http()->json($url, [
        'BaseRequest' => $this->baseRequest
    ]);

    $result = json_decode($content, true);
    $this->generateSyncKey($result, $first);

    myself()->init($result['User']);

    $this->initContactList($result['ContactList']);

    if($result['BaseResponse']['Ret'] != 0){
        Console::log('初始化失败,链接:' . $url, Console::ERROR);
        exit;
    }
}

from vbot.

Hanson avatar Hanson commented on September 22, 2024

windows运行会出现这个问题,暂时还没找到解决办法

from vbot.

Roland-Zhu avatar Roland-Zhu commented on September 22, 2024
  1. Download cacert.pem file from here: http://curl.haxx.se/docs/caextract.html
  2. Save the file in your PHP installation folder. (eg: If using xampp – save it in c:\Installation_Dir\xampp\php\cacert.pem).
  3. Open your php.ini file and add this line:
  4. curl.cainfo=”C:\Installation_Dir\xampp\php\cacert.pem”

from vbot.

Hanson avatar Hanson commented on September 22, 2024

@Roland-Zhu You sure the problem with windows is because of cacert ?

from vbot.

minirplus avatar minirplus commented on September 22, 2024

在Debian上运行也出现了这个问题,已经在其他地方登录过或者之前扫过程序的二维码登录但是没有在运行程序前退出而是在运行后退出的话,也出现了初始化失败的错误。

from vbot.

oplain avatar oplain commented on September 22, 2024

php版本换成7就可以了

from vbot.

Hanson avatar Hanson commented on September 22, 2024

建议执行的PHP版本为PHP7,PHP7以下可能会发生未知的错误

from vbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.