正在显示
1 个修改的文件
包含
7 行增加
和
8 行删除
| @@ -57,14 +57,13 @@ class AiBlogLogic extends BaseLogic | @@ -57,14 +57,13 @@ class AiBlogLogic extends BaseLogic | ||
| 57 | } | 57 | } |
| 58 | $result = $aiBlogService->createTask($this->param['keyword'],$this->param['type']); | 58 | $result = $aiBlogService->createTask($this->param['keyword'],$this->param['type']); |
| 59 | if($result['status'] == 200){ | 59 | if($result['status'] == 200){ |
| 60 | - $aiBlogTaskModel = new AiBlogTask(); | ||
| 61 | - $aiBlogTaskModel->addReturnId(['project_id'=>$this->user['project_id'],'task_id'=>$result['data']['task_id'],'status'=>$result['data']['status']]); | ||
| 62 | - $aiBlogModel = new AiBlog(); | ||
| 63 | - $aiBlogId = $aiBlogModel->addReturnId(['keyword'=>$this->param['keyword'], 'status'=>$result['data']['status'], 'task_id'=>$result['data']['task_id'],'project_id'=>$this->user['project_id'], | ||
| 64 | - ]); | ||
| 65 | - $route = RouteMap::setRoute($aiBlogService->route, RouteMap::SOURCE_AI_BLOG, $aiBlogId, $this->user['project_id']); | ||
| 66 | - $aiBlogModel->edit(['route'=>$route],['id'=>$aiBlogId]); | ||
| 67 | - | 60 | + $aiBlogTaskModel = new AiBlogTask(); |
| 61 | + $aiBlogTaskModel->addReturnId(['project_id'=>$this->user['project_id'],'task_id'=>$result['data']['task_id'],'status'=>$result['data']['status']]); | ||
| 62 | + $aiBlogModel = new AiBlog(); | ||
| 63 | + $aiBlogId = $aiBlogModel->addReturnId(['keyword'=>$this->param['keyword'], 'status'=>$result['data']['status'], 'task_id'=>$result['data']['task_id'],'project_id'=>$this->user['project_id'], | ||
| 64 | + ]); | ||
| 65 | + $route = RouteMap::setRoute($aiBlogService->route, RouteMap::SOURCE_AI_BLOG, $aiBlogId, $this->user['project_id']); | ||
| 66 | + $aiBlogModel->edit(['route'=>$route],['id'=>$aiBlogId]); | ||
| 68 | } | 67 | } |
| 69 | return $this->success(); | 68 | return $this->success(); |
| 70 | } | 69 | } |
-
请 注册 或 登录 后发表评论