diff --git a/code/app/task/crawler/zw630/Scheduler.php b/code/app/task/crawler/zw630/Scheduler.php index dd46ce4..3dd2394 100644 --- a/code/app/task/crawler/zw630/Scheduler.php +++ b/code/app/task/crawler/zw630/Scheduler.php @@ -26,9 +26,9 @@ class Scheduler extends ZwScheduler { $this->intSlice = 3; - $this->intStartNSourceId = config('crawler.novel_start_n_source_id'); + $this->intStartNSourceId = (int) config('crawler.novel_start_n_source_id'); - $this->intEndNSourceId = config('crawler.novel_end_n_source_id'); + $this->intEndNSourceId = (int) config('crawler.novel_end_n_source_id'); } /** diff --git a/code/app/task/crawler/zw74/Scheduler.php b/code/app/task/crawler/zw74/Scheduler.php index 1ea8724..9fc89b7 100644 --- a/code/app/task/crawler/zw74/Scheduler.php +++ b/code/app/task/crawler/zw74/Scheduler.php @@ -21,9 +21,9 @@ class Scheduler extends ZwScheduler { $this->intSlice = 1; - $this->intStartNSourceId = config('crawler.novel_start_n_source_id'); + $this->intStartNSourceId = (int) config('crawler.novel_start_n_source_id'); - $this->intEndNSourceId = config('crawler.novel_end_n_source_id'); + $this->intEndNSourceId = (int) config('crawler.novel_end_n_source_id'); } /**