三方平台认证时"component_verify_ticket" does not exist in cache 和Argument 1 passed to Overtrue\LaravelWeChat\Events\OpenPlatform\OpenPlatformEvent::__construct() must be of the type array

yusheng

问题:

在三方平台进行认证的时候,如果配置文件 'response_type' => 'collection', 会导致

Type error: Argument 1 passed to Overtrue\LaravelWeChat\Events\OpenPlatform\OpenPlatformEvent::__construct() must be of the type array, object given, called in /var/www/wechat_project/vendor/overtrue/laravel-wechat/src/Controllers/OpenPlatformController.php on line 42 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type error: Argument 1 passed to Overtrue\\LaravelWeChat\\Events\\OpenPlatform\\OpenPlatformEvent::__construct() must be of the type array, object given, called in /var/www/wechat_project/vendor/overtrue/laravel-wechat/src/Controllers/OpenPlatformController.php on line 42 at /var/www/wechat_project/vendor/overtrue/laravel-wechat/src/Events/OpenPlatform/OpenPlatformEvent.php:26)

如果配置文件'use_laravel_cache' => true, 会导致

Credential "component_verify_ticket" does not exist in cache.

求大佬以上两种情况的解决方案。

顺便说一下微信的文档出了手机端的授权(三方授权部分),希望下个更新能有。

请更新到 4.0.11 解决 collection 返回类型不兼容的问题。

大佬那第二个问题呢,启用laravel的缓存问题