easywechat 第三方平台授权component_verify_ticket缓存获取不到?

"component_verify_ticket" does not exist in cache
这里也做过缓存了

        $app = Factory::openPlatform(config('wechat.open_platform.default'));
        $predis = app('redis')->connection()->client();
        $cache = new RedisCache($predis);
        $app->rebind('cache', $cache);
        $this->server = $app;

能收到微信传过来的ticket 就是在缓存里找不到。

阅读 7.3k
1 个回答
新手上路,请多包涵
/**
 * Get cache key.
 *
 * @return string
 */
protected function getCacheKey(): string
{
    return 'easywechat.open_platform.verify_ticket.'.$this->app['config']['app_id'];
}
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题