作者 lyh

列表页聚合页模式

@@ -133,10 +133,8 @@ class AiBlogAutoPublish extends Command @@ -133,10 +133,8 @@ class AiBlogAutoPublish extends Command
133 $aiBlogTaskModel = new AiBlogTaskModel(); 133 $aiBlogTaskModel = new AiBlogTaskModel();
134 $next_auto_date = date('Y-m-d', strtotime('+' . mt_rand($frequency[0],$frequency[1]) . 'days')); //每3-6天自动发布 134 $next_auto_date = date('Y-m-d', strtotime('+' . mt_rand($frequency[0],$frequency[1]) . 'days')); //每3-6天自动发布
135 $aiBlogTaskModel->addReturnId(['project_id' => $project_id, 'type' => 2, 'task_id' => $result['data']['task_id'], 'status' => 1, 'next_auto_date' => $next_auto_date]); 135 $aiBlogTaskModel->addReturnId(['project_id' => $project_id, 'type' => 2, 'task_id' => $result['data']['task_id'], 'status' => 1, 'next_auto_date' => $next_auto_date]);
136 -  
137 ProjectServer::useProject($project_id); 136 ProjectServer::useProject($project_id);
138 $aiBlogModel = new AiBlog(); 137 $aiBlogModel = new AiBlog();
139 -  
140 $start = strtotime('10:00:00'); 138 $start = strtotime('10:00:00');
141 $end = strtotime('16:00:00'); 139 $end = strtotime('16:00:00');
142 $randomTimestamp = mt_rand($start, $end); 140 $randomTimestamp = mt_rand($start, $end);
@@ -53,6 +53,9 @@ class AiVideoAutoPublish extends Command @@ -53,6 +53,9 @@ class AiVideoAutoPublish extends Command
53 if($action == 'auto_publish'){ 53 if($action == 'auto_publish'){
54 $this->auto_publish(); 54 $this->auto_publish();
55 } 55 }
  56 + if($action == 'auto_send_video'){
  57 + $this->auto_send_video();
  58 + }
56 } 59 }
57 60
58 /** 61 /**