Skip to content

Commit

Permalink
debug tiktok again
Browse files Browse the repository at this point in the history
  • Loading branch information
fokosun committed Aug 21, 2023
1 parent f0dce08 commit b0e6cf9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
28 changes: 14 additions & 14 deletions app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion app/Listeners/GetTikTokUserVideos.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit b0e6cf9

Please sign in to comment.