listThirdUserInfos废弃
This commit is contained in:
parent
9cc595b4cb
commit
da796e9f19
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user