作者 lyh

GXgeo设置

... ... @@ -27,7 +27,7 @@ class AiCommandLogic extends BaseLogic
*/
public function getPrompt($is_batch = 0){
//是否有项目指令
$ai_command = $this->model->where('key', $this->param['key'])->where('project_id', $this->project['id'])->first();
$ai_command = $this->model->where('key', $this->param['key'])->where('project_id', $this->user['project_id'] ?? $this->project['id'])->first();
if(!$ai_command){
$ai_command = $this->model->where('key', $this->param['key'])->where('project_id', 0)->first();
}
... ...