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

open platform component_verify_ticket 错误 #984

Closed
wangxiaomo opened this issue Oct 25, 2017 · 1 comment
Closed

open platform component_verify_ticket 错误 #984

wangxiaomo opened this issue Oct 25, 2017 · 1 comment

Comments

@wangxiaomo
Copy link

我用的环境

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

问题及现象

接收开放平台每10min发起的component_verify_ticket时抛出
throw new EncryptionException('Invalid Signature.', EncryptionException::ERROR_INVALID_SIGNATURE);
经过debug发现是Encryptor里面的token没有正确存入,继续debug这里发现$pimple的配置是存在$pimple['config']中并不是$pimple['config']['open_platform']中,理论上mini_program应该也会存在这样的问题吧。

master分支的这里也是用的pimple container,但是配置的读取位置就是正确的。

麻烦作者看下是不是确实有此问题,可能open platform用的人不多,大家都没有意识到这个问题。

@wangxiaomo
Copy link
Author

文档和config/wechat.php里关于开放平台的配置有点混淆的意思,初始化的时候参数传的有问题

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

1 participant