在使用 EasyWechat 获取会员卡信息时,报错:Failed to cache access token.

    问题定位:在 cache 中保存 access_token 后,检查是否存在 access_token,此时框架发现 access_token 获取不到,于是抛出了这个异常。

    解决方法:

    1. rm -rf /tmp/symfony-cache

    本项目中 EasyWechat 使用的是 symfony cache,缓存在 /tmp/symfony-cache 目录中。

    猜测:在命令行执行命令时,产生了缓存文件,而 nginx 用户无法访问该文件,导致出错。