作者 lyh

GXgeo设置

@@ -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 }