作者 lyh

gx脚本自动生成视频

@@ -53,12 +53,16 @@ class VideoTask extends Command @@ -53,12 +53,16 @@ class VideoTask extends Command
53 * @var int 最大子任务 53 * @var int 最大子任务
54 */ 54 */
55 public $max_sub_task = 200; 55 public $max_sub_task = 200;
56 - public $max_num; 56 + public $max_num = 49000;
57 /** 57 /**
58 * @return bool 58 * @return bool
59 */ 59 */
60 public function handle() 60 public function handle()
61 { 61 {
  62 + $number = $this->getVideoNumber();
  63 + if($number >= $this->max_num){
  64 + return true;
  65 + }
62 echo '开始:'.PHP_EOL; 66 echo '开始:'.PHP_EOL;
63 Log::info('开始视频推广任务'); 67 Log::info('开始视频推广任务');
64 $this->createSubTask(); 68 $this->createSubTask();