[api] torrents add tags + promotion + pick

This commit is contained in:
xiaomlove
2022-03-13 21:45:48 +08:00
parent 367588528b
commit c611372ed8
11 changed files with 173 additions and 44 deletions

View File

@@ -82,7 +82,7 @@ class TorrentRepository extends BaseRepository
$query = $this->handleGetListSort($query, $params);
$with = ['user'];
$with = ['user', 'tags'];
$torrents = $query->with($with)->paginate();
$userArr = $user->toArray();
foreach($torrents as &$item) {