作者 李宇航

合并分支 'lyh-server' 到 'master'

列表页聚合页模式



查看合并请求 !2494
... ... @@ -133,10 +133,8 @@ class AiBlogAutoPublish extends Command
$aiBlogTaskModel = new AiBlogTaskModel();
$next_auto_date = date('Y-m-d', strtotime('+' . mt_rand($frequency[0],$frequency[1]) . 'days')); //每3-6天自动发布
$aiBlogTaskModel->addReturnId(['project_id' => $project_id, 'type' => 2, 'task_id' => $result['data']['task_id'], 'status' => 1, 'next_auto_date' => $next_auto_date]);
ProjectServer::useProject($project_id);
$aiBlogModel = new AiBlog();
$start = strtotime('10:00:00');
$end = strtotime('16:00:00');
$randomTimestamp = mt_rand($start, $end);
... ...
... ... @@ -53,6 +53,9 @@ class AiVideoAutoPublish extends Command
if($action == 'auto_publish'){
$this->auto_publish();
}
if($action == 'auto_send_video'){
$this->auto_send_video();
}
}
/**
... ...