From 20d1f20b495db8da83f71f790a7c7eea420f9f2e Mon Sep 17 00:00:00 2001 From: "675061370@qq.com" Date: Sun, 17 Nov 2024 16:29:50 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/Source.php | 3 ++- chatgpt-on-wechat/config.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/model/Source.php b/app/model/Source.php index c607c7c..e4e28a3 100644 --- a/app/model/Source.php +++ b/app/model/Source.php @@ -109,7 +109,8 @@ class Source extends QfShop $ip = $_SERVER['REMOTE_ADDR']; $ips = Log::where(['ip'=>$ip])->find(); if(empty($ips)){ - Log::save(['name' => '访问记录','ip'=>$ip]); + $log = new Log(); + $log->save(['name' => '访问记录','ip'=>$ip]); }else{ Log::where('id', $ips['id'])->update(['update_time' => time()]); } diff --git a/chatgpt-on-wechat/config.json b/chatgpt-on-wechat/config.json index b9ab4a5..4d608f0 100644 --- a/chatgpt-on-wechat/config.json +++ b/chatgpt-on-wechat/config.json @@ -11,7 +11,8 @@ "text_to_voice": "openai", "proxy": "", "hot_reload": true, - "single_chat_prefix": [""], + "group_at_off": false, + "single_chat_prefix": ["bot", "@bot"], "single_chat_reply_prefix": "[bot]", "group_chat_prefix": [ "@bot"