listThirdUserInfos废弃

This commit is contained in:
hgc 2025-02-23 15:53:55 +08:00
parent 9cc595b4cb
commit da796e9f19

View File

@ -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);