This commit is contained in:
Default
2025-04-17 17:29:51 +08:00
parent efad19295d
commit 1f8c738381
16 changed files with 466 additions and 215 deletions

View File

@@ -12,6 +12,11 @@ use app\task\crawler\zw\Scheduler as ZwScheduler;
*/
class Scheduler extends ZwScheduler
{
protected $intStartNSourceId = 1;
protected $intEndNSourceId = 500000;
/**
* Undocumented function
*
@@ -19,7 +24,7 @@ class Scheduler extends ZwScheduler
*/
public function init()
{
$this->intSlice = 4;
$this->intSlice = 3;
}
/**

View File

@@ -7,6 +7,7 @@ namespace app\task\crawler\zw630\page;
use app\task\crawler\zw\page\Site as ZwSite;
use GuzzleHttp\Promise;
use GuzzleHttp\Client;
/**
* @mixin think\Model
*/
@@ -99,10 +100,10 @@ class Site extends ZwSite
if ($intPage == 0) {
$arrItem['uri'] = sprintf('/shu/%s.html', $intNSourceId);
$strUri = sprintf('/shu/%s.html', $intNSourceId);
} else {
$arrItem['uri'] = sprintf('/shu/%s_%s.html', $intNSourceId, $intPage);
$strUri = sprintf('/shu/%s_%s.html', $intNSourceId, $intPage);
}
return $strUri;