mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
fix cancel torrent hr bulk not work
This commit is contained in:
@@ -285,7 +285,7 @@ class TorrentResource extends Resource
|
|||||||
])
|
])
|
||||||
->icon('heroicon-o-sparkles')
|
->icon('heroicon-o-sparkles')
|
||||||
->action(function (Collection $records, array $data) {
|
->action(function (Collection $records, array $data) {
|
||||||
if (empty($data['hr'])) {
|
if (!isset($data['hr'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$idArr = $records->pluck('id')->toArray();
|
$idArr = $records->pluck('id')->toArray();
|
||||||
|
|||||||
@@ -668,6 +668,7 @@ class TorrentRepository extends BaseRepository
|
|||||||
'hr' => $hrStatus,
|
'hr' => $hrStatus,
|
||||||
];
|
];
|
||||||
$idArr = Arr::wrap($id);
|
$idArr = Arr::wrap($id);
|
||||||
|
do_log(sprintf("set torrent: %s hr: %s", implode(",", $idArr), $hrStatus));
|
||||||
return Torrent::query()->whereIn('id', $idArr)->update($update);
|
return Torrent::query()->whereIn('id', $idArr)->update($update);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.12');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.12');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-04-26');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-05-08');
|
||||||
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");
|
||||||
|
|||||||
Reference in New Issue
Block a user