Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev
This commit is contained in:
@@ -62,3 +62,7 @@ PROXY_CODE = KUAI
|
||||
PROXY_HOST = w740.kdltps.com:15818
|
||||
PROXY_KEY = t14468368981914
|
||||
PROXY_SECRET = 03xvfdc0
|
||||
|
||||
# CRAWLER
|
||||
NOVEL_START_N_SOURCE_ID = 1
|
||||
NOVEL_END_N_SOURCE_ID = 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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
8
code/config/crawler.php
Normal file
8
code/config/crawler.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | Crawler 设置
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
'novel_start_n_source_id' => env('NOVEL_START_N_SOURCE_ID', 1),
|
||||
'novel_end_n_source_id' => env('NOVEL_END_N_SOURCE_ID', 500000),
|
||||
];
|
||||
Reference in New Issue
Block a user