合并分支 'lyh-server' 到 'master'
变更数据 查看合并请求 !3048
正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -187,7 +187,9 @@ class AiBlogLogic extends BaseLogic | @@ -187,7 +187,9 @@ class AiBlogLogic extends BaseLogic | ||
| 187 | } | 187 | } |
| 188 | if(isset($param['id']) && !empty($param['id'])){ | 188 | if(isset($param['id']) && !empty($param['id'])){ |
| 189 | $id = $param['id']; | 189 | $id = $param['id']; |
| 190 | - $data['task_id'] = $param['task_id']; | 190 | + if(!empty($param['task_id'])){ |
| 191 | + $data['task_id'] = $param['task_id']; | ||
| 192 | + } | ||
| 191 | if(!isset($param['seo_keyword']) || empty($param['seo_keyword'])){ | 193 | if(!isset($param['seo_keyword']) || empty($param['seo_keyword'])){ |
| 192 | $ai = "contains keyword {$param['title']} recommend 8 purchaser search keywords, separated by commas"; | 194 | $ai = "contains keyword {$param['title']} recommend 8 purchaser search keywords, separated by commas"; |
| 193 | $text = Gpt::instance()->openai_chat_qqs($ai); | 195 | $text = Gpt::instance()->openai_chat_qqs($ai); |
| @@ -222,7 +224,7 @@ class AiBlogLogic extends BaseLogic | @@ -222,7 +224,7 @@ class AiBlogLogic extends BaseLogic | ||
| 222 | //todo::更新列表页 | 224 | //todo::更新列表页 |
| 223 | shell_exec("php artisan save_ai_blog_list {$this->user['project_id']} > /dev/null 2>&1 &"); | 225 | shell_exec("php artisan save_ai_blog_list {$this->user['project_id']} > /dev/null 2>&1 &"); |
| 224 | }else{ | 226 | }else{ |
| 225 | - $this->fail('发布失败,请编辑后重新发布'); | 227 | + $this->fail('文章已发布,文章无法同步到列表,请编辑后保存'); |
| 226 | } | 228 | } |
| 227 | return $this->success(); | 229 | return $this->success(); |
| 228 | } | 230 | } |
-
请 注册 或 登录 后发表评论