|
...
|
...
|
@@ -53,12 +53,16 @@ class VideoTask extends Command |
|
|
|
* @var int 最大子任务
|
|
|
|
*/
|
|
|
|
public $max_sub_task = 200;
|
|
|
|
public $max_num;
|
|
|
|
public $max_num = 49000;
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
$number = $this->getVideoNumber();
|
|
|
|
if($number >= $this->max_num){
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
echo '开始:'.PHP_EOL;
|
|
|
|
Log::info('开始视频推广任务');
|
|
|
|
$this->createSubTask();
|
...
|
...
|
|