Comments (7)
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.
windows运行会出现这个问题,暂时还没找到解决办法
from vbot.
- Download cacert.pem file from here: http://curl.haxx.se/docs/caextract.html
- Save the file in your PHP installation folder. (eg: If using xampp – save it in c:\Installation_Dir\xampp\php\cacert.pem).
- Open your php.ini file and add this line:
- curl.cainfo=”C:\Installation_Dir\xampp\php\cacert.pem”
from vbot.
@Roland-Zhu You sure the problem with windows is because of cacert ?
from vbot.
在Debian上运行也出现了这个问题,已经在其他地方登录过或者之前扫过程序的二维码登录但是没有在运行程序前退出而是在运行后退出的话,也出现了初始化失败的错误。
from vbot.
php版本换成7就可以了
from vbot.
建议执行的PHP版本为PHP7,PHP7以下可能会发生未知的错误
from vbot.
Related Issues (20)
- 请问可以通过c++程序,调用vbot给某个好友发消息么?
- 发信方的uin 获取不到 始终为0 HOT 1
- 撤回时无法取到撤回内容 HOT 2
- 已经不能用了吗?
- 拉人,踢人接口不能用了 HOT 4
- 现在微信不能登录网页版微信了 HOT 5
- 缓存设置为redis,是否需要修改一行代码 HOT 2
- 添加群好友返回信息错误
- 添加群好友返回信息错误
- 请问api接口如何发送图片?
- 我大号也登不上去,微信网页端应该要下线了 HOT 1
- 部分消息发送时会出现 Ret=3的错误
- 现在没法使用了吗? HOT 1
- 前段时间还好好的,最近两个星期每天凌晨3-5点都会程序退出,怎么不退出呢? HOT 6
- laravel5.5 使用 command 命令编写后 所有artisan命令都失效。 HOT 1
- 【研发必看!!!】做机器人,小助手,营销系统,客服系统,监管系统的可以 看下这个API方案 https://www.wkteam.cn/
- phpqrcode已经废弃了
- 推荐一个合规不封号的解决方案
- 商用方案看这里!hook 和协议都有 HOT 1
- 国务院对该项目的相关处理
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vbot.