mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix bookmark
This commit is contained in:
@@ -304,8 +304,9 @@ class ClaimRepository extends BaseRepository
|
|||||||
) {
|
) {
|
||||||
$now = Carbon::now();
|
$now = Carbon::now();
|
||||||
$allTorrentIdArr = array_merge($reachedTorrentIdArr, $unReachedTorrentIdArr, $remainTorrentIdArr);
|
$allTorrentIdArr = array_merge($reachedTorrentIdArr, $unReachedTorrentIdArr, $remainTorrentIdArr);
|
||||||
|
//这里不使用占位符,在 $allTorrentIdArr 过大(超过3000)时容易结果为空且不报异常
|
||||||
$torrentInfo = Torrent::query()
|
$torrentInfo = Torrent::query()
|
||||||
->whereIn('id', $allTorrentIdArr)
|
->whereRaw(sprintf("id in (%s)", implode(',', $allTorrentIdArr)))
|
||||||
->get(Torrent::$commentFields)
|
->get(Torrent::$commentFields)
|
||||||
->keyBy('id')
|
->keyBy('id')
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.6');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.6');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-08-04');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-08-15');
|
||||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||||
|
|||||||
+2
-1
@@ -645,7 +645,8 @@ if ($all)
|
|||||||
}
|
}
|
||||||
//stderr("", count($wherecatina)."-". count($wheresourceina));
|
//stderr("", count($wherecatina)."-". count($wheresourceina));
|
||||||
$wherecatin = $wheresourcein = $wheremediumin = $wherecodecin = $wherestandardin = $whereprocessingin = $whereteamin = $whereaudiocodecin = '';
|
$wherecatin = $wheresourcein = $wheremediumin = $wherecodecin = $wherestandardin = $whereprocessingin = $whereteamin = $whereaudiocodecin = '';
|
||||||
if (empty($wherecatina)) {
|
if (empty($wherecatina) && !(in_array($inclbookmarked, [1, 2]) && $allsec == 1)) {
|
||||||
|
//require limit in some category
|
||||||
$wherecatina = $allCategoryId;
|
$wherecatina = $allCategoryId;
|
||||||
}
|
}
|
||||||
if (count($wherecatina) > 1)
|
if (count($wherecatina) > 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user