debug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user