Cannot use object of type EasyWeChat\OfficialAccount\Application as array
zbage opened this issue · comments
Route::get('/test',function(){
$user = session('easywechat.oauth_user.default');
// dd($user);
echo 'hello:'.$user['id'];
})->middleware(['easywechat.oauth'])->name('test');
local.ERROR: Cannot use object of type EasyWeChat\OfficialAccount\Application as array {"exception":"[object] (Error(code: 0): Cannot use object of type EasyWeChat\OfficialAccount\Application as array at ...../testing_laravel9/vendor/overtrue/laravel-wechat/src/ServiceProvider.php:73)
还没改完哈
已修复
local.ERROR: Undefined property: EasyWeChat\OfficialAccount\Application::$oauth {"exception":"[object] (ErrorException(code: 0): Undefined property: EasyWeChat\OfficialAccount\Application::$oauth at .../testing_laravel9/vendor/overtrue/laravel-wechat/src/Middleware/OAuthAuthenticate.php:73)