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"