正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -27,7 +27,7 @@ class AiCommandLogic extends BaseLogic | @@ -27,7 +27,7 @@ class AiCommandLogic extends BaseLogic | ||
| 27 | */ | 27 | */ |
| 28 | public function getPrompt($is_batch = 0){ | 28 | public function getPrompt($is_batch = 0){ |
| 29 | //是否有项目指令 | 29 | //是否有项目指令 |
| 30 | - $ai_command = $this->model->where('key', $this->param['key'])->where('project_id', $this->project['id'])->first(); | 30 | + $ai_command = $this->model->where('key', $this->param['key'])->where('project_id', $this->user['project_id'] ?? $this->project['id'])->first(); |
| 31 | if(!$ai_command){ | 31 | if(!$ai_command){ |
| 32 | $ai_command = $this->model->where('key', $this->param['key'])->where('project_id', 0)->first(); | 32 | $ai_command = $this->model->where('key', $this->param['key'])->where('project_id', 0)->first(); |
| 33 | } | 33 | } |
-
请 注册 或 登录 后发表评论