judge H&R count think about section

This commit is contained in:
xiaomlove
2022-10-01 01:58:18 +08:00
parent 6de5cb2f21
commit 28b85c7ecf
5 changed files with 14 additions and 7 deletions
@@ -44,8 +44,8 @@ class HitAndRunUpdateStatus extends Command
$rep = new HitAndRunRepository();
$result = $rep->cronjobUpdateStatus($uid, $torrentId, $ignoreTime);
$log = sprintf(
'[%s], %s, uid: %s, torrentId: %s, result: %s',
nexus()->getRequestId(), __METHOD__, $uid, $torrentId, var_export($result, true)
'[%s], %s, uid: %s, torrentId: %s, ignoreTime: %s, result: %s',
nexus()->getRequestId(), __METHOD__, $uid, $torrentId, $ignoreTime, var_export($result, true)
);
$this->info($log);
do_log($log);
+4 -2
View File
@@ -89,8 +89,10 @@ class Test extends Command
*/
public function handle()
{
$r = strstr('hr.*', '.', true);
dd($r);
$rep = new \NexusPlugin\HitAndRun\HitAndRunRepository();
$rep->initSectionHitAndRunSetting(SearchBox::SECTION_BROWSE . "_");
$rep->initSectionHitAndRunSetting(SearchBox::SECTION_SPECIAL . "_");
clear_setting_cache();
}