合并分支 'lyh-server' 到 'master'
变更数据 查看合并请求 !2977
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -217,8 +217,8 @@ class AiBlogLogic extends BaseLogic | @@ -217,8 +217,8 @@ class AiBlogLogic extends BaseLogic | ||
| 217 | } | 217 | } |
| 218 | $aiBlogService = new AiBlogService($this->user['project_id']); | 218 | $aiBlogService = new AiBlogService($this->user['project_id']); |
| 219 | $result = $aiBlogService->createCustomBlog($data); | 219 | $result = $aiBlogService->createCustomBlog($data); |
| 220 | + $this->model->edit(['task_id'=>$result['data']['task_id'] ?? '','status'=>$this->model::STATUS_FINISH],['id'=>$id]); | ||
| 220 | if(isset($result['status']) && $result['status'] == 200){ | 221 | if(isset($result['status']) && $result['status'] == 200){ |
| 221 | - $this->model->edit(['task_id'=>$result['data']['task_id'],'status'=>$this->model::STATUS_FINISH],['id'=>$id]); | ||
| 222 | //todo::更新列表页 | 222 | //todo::更新列表页 |
| 223 | shell_exec("php artisan save_ai_blog_list {$this->user['project_id']} > /dev/null 2>&1 &"); | 223 | shell_exec("php artisan save_ai_blog_list {$this->user['project_id']} > /dev/null 2>&1 &"); |
| 224 | }else{ | 224 | }else{ |
-
请 注册 或 登录 后发表评论