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

无法获取 $message->ScanCodeInfo->ScanType 对象 #358

Closed
vangogogo opened this issue Mar 24, 2016 · 2 comments
Closed

无法获取 $message->ScanCodeInfo->ScanType 对象 #358

vangogogo opened this issue Mar 24, 2016 · 2 comments

Comments

@vangogogo
Copy link

无法获取扫描值。提示找不到对应的对象 “exception 'yii\base\ErrorException' with message 'Trying to get property of non-object' in frontend/controllers/WechatController.php:48”
6fa02d1c-e613-4e4b-8e37-b4a690a619f5

@vangogogo
Copy link
Author

json转换一下就可以了,好奇怪,哪里姿势不对吗?
38b30662-6ce5-45d9-9e97-6dc958ed3ac5

@overtrue
Copy link
Collaborator

$message->ScanCode 本来得到的就已经是数组了,你再去数组当成对象用肯定是不行啊。

$message->ScanCodeInfo['ScanType']; 

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

2 participants