From da796e9f190f4b82bbecdaccbf5d8e616778b445 Mon Sep 17 00:00:00 2001 From: hgc Date: Sun, 23 Feb 2025 15:53:55 +0800 Subject: [PATCH] =?UTF-8?q?listThirdUserInfos=E5=BA=9F=E5=BC=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/OAuthController.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) 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);