作者 李宇航

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

Lyh server



查看合并请求 !2976
... ... @@ -180,7 +180,7 @@ class AiBlogLogic extends BaseLogic
//推送到ai的数据结构
$data = [
'title'=>$param['new_title'], 'thumb'=>$param['image'], 'foreword'=>$param['description'] ?? '',
'author_id'=>$this->param['author_id'], 'url'=>$param['route'],
'author_id'=>$param['author_id'], 'url'=>$param['route'],
];
if(!isset($param['description']) || empty($param['description'])){
$param['description'] = truncate_text($param['text']);
... ... @@ -221,6 +221,8 @@ class AiBlogLogic extends BaseLogic
$this->model->edit(['task_id'=>$result['data']['task_id'],'status'=>$this->model::STATUS_FINISH],['id'=>$id]);
//todo::更新列表页
shell_exec("php artisan save_ai_blog_list {$this->user['project_id']} > /dev/null 2>&1 &");
}else{
$this->fail('发布失败,请编辑后重新发布');
}
return $this->success();
}
... ...