Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3] AccessToken.php:243 #1021

Closed
ac1982 opened this issue Nov 12, 2017 · 5 comments
Closed

[V3] AccessToken.php:243 #1021

ac1982 opened this issue Nov 12, 2017 · 5 comments

Comments

@ac1982
Copy link
Contributor

ac1982 commented Nov 12, 2017

我用的环境

PHP 版本:7.1.11
overtrue/wechat 版本:3.3.18
是否使用了框架?框架名称:Laravel

问题及现象

Cron每天凌晨会自动composer update.
用户OAuth失败,今天没有操作过代码,发现只有overtrue/wechat自动升级为了3.3.18.
回滚到3.3.17问题解决。
我先Open Issue 晚点会查看下原因。

@mogocat
Copy link

mogocat commented Nov 12, 2017

也遇到这个问题了,Request AccessToken fail. response: false
回滚也无效,今晚突发的bug,晚上只修改了一些css,没有改动代码

@mogocat
Copy link

mogocat commented Nov 12, 2017

我所遇到的bug仅在本地出现,服务器竟然没事,不知道是缓存还是什么缘故。
如果有后面来的人遇到我发的那个问题,请修改overtrue/wechat/src/Core/Http.php文件中的267行

$body = $body->getBody()->getContents(); => $body = $body->getBody();

@neatstudio
Copy link

确实是。我也是改成$body=(string)$body->getBody();

建议还是
$body = $body->getBody()->getContents() ?: $body->getBody();

@overtrue
Copy link
Collaborator

3.3.19 已经还原修改, sorry

@toxmc
Copy link

toxmc commented Nov 13, 2017

今天刚刚遇到了一直排查问题出现在哪里...😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants