作者 李宇航

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

gx



查看合并请求 !1758
@@ -234,7 +234,7 @@ class AiBlogTask extends Command @@ -234,7 +234,7 @@ class AiBlogTask extends Command
234 $authorInfo = $aiBlogAuthorModel->read(['author_id'=>$author_id],['id','route']); 234 $authorInfo = $aiBlogAuthorModel->read(['author_id'=>$author_id],['id','route']);
235 if($authorInfo !== false && !empty($result['data']['section'])){ 235 if($authorInfo !== false && !empty($result['data']['section'])){
236 //需要更新的路由 236 //需要更新的路由
237 - if (!in_array($authorInfo['route'], $this->routes[$item['project_id']] ?? [])) { 237 + if (!in_array($authorInfo['route'], $this->routes[$project_id] ?? [])) {
238 $this->routes[$project_id][] = $authorInfo['route']; 238 $this->routes[$project_id][] = $authorInfo['route'];
239 } 239 }
240 $aiBlogAuthorModel->edit(['text'=>$result['data']['section']],['author_id'=>$author_id]); 240 $aiBlogAuthorModel->edit(['text'=>$result['data']['section']],['author_id'=>$author_id]);