diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index a2929ea7..113db416 100755 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -217,20 +217,20 @@ public function tikTokHandleCallback(Request $request, Client $client, UserServi return redirect('https://web.cookbookshq.com/#/errors/?m=there was an error processing this request, please try again.'); } -// TikTokUserIsAuthenticated::dispatch(new TikTokUserDto( -// $user->getKey(), -// $userInfo['data']['user']['open_id'], -// $decoded['data']['access_token'], -// $userInfo['data']['user']['is_verified'], -// $userInfo['data']['user']['profile_deep_link'], -// $userInfo['data']['user']['bio_description'], -// $userInfo['data']['user']['display_name'], -// $userInfo['data']['user']['avatar_large_url'], -// $userInfo['data']['user']['avatar_url_100'], -// $userInfo['data']['user']['avatar_url'], -// $userInfo['data']['user']['union_id'], -// $userInfo['data']['user']['video_count'] -// )); + TikTokUserIsAuthenticated::dispatch(new TikTokUserDto( + $user->getKey(), + $userInfo['data']['user']['open_id'], + $decoded['data']['access_token'], + $userInfo['data']['user']['is_verified'], + $userInfo['data']['user']['profile_deep_link'], + $userInfo['data']['user']['bio_description'], + $userInfo['data']['user']['display_name'], + $userInfo['data']['user']['avatar_large_url'], + $userInfo['data']['user']['avatar_url_100'], + $userInfo['data']['user']['avatar_url'], + $userInfo['data']['user']['union_id'], + $userInfo['data']['user']['video_count'] + )); $to = 'https://web.cookbookshq.com/#/tiktok/?' . http_build_query([ 'token' => $token, diff --git a/app/Listeners/GetTikTokUserVideos.php b/app/Listeners/GetTikTokUserVideos.php index 4a95e70f..cf4c0a7d 100644 --- a/app/Listeners/GetTikTokUserVideos.php +++ b/app/Listeners/GetTikTokUserVideos.php @@ -61,7 +61,8 @@ public function handle(object $event): void } } catch(\Exception $exception) { - throw new TikTokException($exception->getMessage(), $context); + dd($exception->getMessage()); +// throw new TikTokException($exception->getMessage(), $context); } } }