diff --git a/app/controller/OAuthController.php b/app/controller/OAuthController.php index d409a6a..234d598 100644 --- a/app/controller/OAuthController.php +++ b/app/controller/OAuthController.php @@ -57,19 +57,18 @@ class OAuthController $authorizedThirdUsers = [ - 'facebook' => ['status' => 0], - 'google' => ['status' => 0], - 'tiktok' => ['status' => 0], + 'facebook' => ['status' => 1], + 'google' => ['status' => 1], + 'tiktok' => ['status' => 1], ]; -// $accounts = $this->bpsAdAccountService->getAllThirdUsers(['uid' => $options['jwtClaims']['uid']]); - $accounts = $this->bpsAdAccountService->getAllThirdUsers(['merchant_id' => $options['jwtClaims']['merchant_id']]); - - foreach ($accounts as $account) { - $authorizedThirdUsers[$account['third_type']] = [ - 'status' => 1, - 'id' => $account['id'], - ]; - } +// $accounts = $this->bpsAdAccountService->getAllThirdUsers(['merchant_id' => $options['jwtClaims']['merchant_id']]); +// +// foreach ($accounts as $account) { +// $authorizedThirdUsers[$account['third_type']] = [ +// 'status' => 1, +// 'id' => $account['id'], +// ]; +// } // θΏ”ε›žη»“ζžœ return $this->successResponse($authorizedThirdUsers, $request);