bug修复

This commit is contained in:
675061370@qq.com
2024-11-17 16:29:50 +08:00
parent 732e5c0524
commit 20d1f20b49
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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()]);
}
+2 -1
View File
@@ -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"