json_decode() expects parameter 1 to be string, object given

$data = Weann\Socialite\Facades\Socialite::driver('wechat')->user();//是字符串
$data=json_encode($data);
$data=json_decode($data);

posted @ 2016-01-29 16:22  麦田守望者~  阅读(9784)  评论(0编辑  收藏  举报