|
...
|
...
|
@@ -128,7 +128,7 @@ class AiBlogAutoPublish extends Command |
|
|
|
public function createTask($keywords, $project_id, $frequency){
|
|
|
|
$keyword = $keywords[array_rand($keywords)];
|
|
|
|
$aiBlogService = new AiBlogService($project_id);
|
|
|
|
$result = $aiBlogService->setRoute($keyword)->createTask($keyword);
|
|
|
|
$result = $aiBlogService->createTask($keyword);
|
|
|
|
if ($result['status'] == 200) {
|
|
|
|
$aiBlogTaskModel = new AiBlogTaskModel();
|
|
|
|
$next_auto_date = date('Y-m-d', strtotime('+' . mt_rand($frequency[0],$frequency[1]) . 'days')); //每3-6天自动发布
|
...
|
...
|
|