mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
connect_list增加过滤条件
This commit is contained in:
parent
1e679cb24c
commit
ff9aa71481
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
namespace App\Services\Logic\User\Console;
|
namespace App\Services\Logic\User\Console;
|
||||||
|
|
||||||
|
use App\Models\Connect as ConnectModel;
|
||||||
use App\Repos\Connect as ConnectRepo;
|
use App\Repos\Connect as ConnectRepo;
|
||||||
use App\Services\Logic\Service as LogicService;
|
use App\Services\Logic\Service as LogicService;
|
||||||
|
|
||||||
@ -32,7 +33,13 @@ class ConnectList extends LogicService
|
|||||||
|
|
||||||
$items = [];
|
$items = [];
|
||||||
|
|
||||||
|
$excludes = [
|
||||||
|
ConnectModel::PROVIDER_WECHAT_OA,
|
||||||
|
ConnectModel::PROVIDER_WECHAT_MINI,
|
||||||
|
];
|
||||||
|
|
||||||
foreach ($connects as $connect) {
|
foreach ($connects as $connect) {
|
||||||
|
if (!in_array($connect->provider, $excludes)) {
|
||||||
$items[] = [
|
$items[] = [
|
||||||
'id' => $connect->id,
|
'id' => $connect->id,
|
||||||
'open_id' => $connect->open_id,
|
'open_id' => $connect->open_id,
|
||||||
@ -43,6 +50,7 @@ class ConnectList extends LogicService
|
|||||||
'update_time' => $connect->update_time,
|
'update_time' => $connect->update_time,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $items;
|
return $items;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user