feature config start page and end page with novel by craler

This commit is contained in:
Default
2025-04-29 20:17:48 +08:00
parent ec7a2dd342
commit badbb7cf13
4 changed files with 21 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ use app\task\crawler\zw\Scheduler as ZwScheduler;
*/
class Scheduler extends ZwScheduler
{
protected $intStartNSourceId = 1;
protected $intEndNSourceId = 500000;
@@ -25,6 +25,10 @@ class Scheduler extends ZwScheduler
public function init()
{
$this->intSlice = 3;
$this->intStartNSourceId = config('crawler.novel_start_n_source_id');
$this->intEndNSourceId = config('crawler.novel_end_n_source_id');
}
/**

View File

@@ -20,6 +20,10 @@ class Scheduler extends ZwScheduler
public function init()
{
$this->intSlice = 1;
$this->intStartNSourceId = config('crawler.novel_start_n_source_id');
$this->intEndNSourceId = config('crawler.novel_end_n_source_id');
}
/**