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

console中使用$app->user->get报错 #932

Closed
xhat opened this issue Sep 20, 2017 · 7 comments
Closed

console中使用$app->user->get报错 #932

xhat opened this issue Sep 20, 2017 · 7 comments

Comments

@xhat
Copy link

xhat commented Sep 20, 2017

$app = new Application($options);
$wechat = $app->open_platform->createAuthorizerApplication($appid, $refresh_token);
return $wechat->user->get($openid);

console中使用user方法时提示:

  [EasyWeChat\Core\Exceptions\RuntimeException]
  Component verify ticket does not exists.

这个是没缓存ticket么

@overtrue
Copy link
Collaborator

@mingyoung

@mingyoung
Copy link
Collaborator

@xhat

@xhat
Copy link
Author

xhat commented Sep 21, 2017

非console环境下是能正常调用user的。这个在console下该怎么解决呢,或者应该说怎么在console下获取到已被缓存的ticket

@mingyoung
Copy link
Collaborator

缓存 driver 不一样吧?

@xhat
Copy link
Author

xhat commented Sep 21, 2017

laravel是file,easywechat应该也是file吧。没设置其他缓存driver

@mingyoung
Copy link
Collaborator

那就不晓得了,我这边是没问题的

@mingyoung
Copy link
Collaborator

@xhat
#958 (comment)

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

3 participants