bug修复
This commit is contained in:
@@ -109,7 +109,8 @@ class Source extends QfShop
|
|||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||||||
$ips = Log::where(['ip'=>$ip])->find();
|
$ips = Log::where(['ip'=>$ip])->find();
|
||||||
if(empty($ips)){
|
if(empty($ips)){
|
||||||
Log::save(['name' => '访问记录','ip'=>$ip]);
|
$log = new Log();
|
||||||
|
$log->save(['name' => '访问记录','ip'=>$ip]);
|
||||||
}else{
|
}else{
|
||||||
Log::where('id', $ips['id'])->update(['update_time' => time()]);
|
Log::where('id', $ips['id'])->update(['update_time' => time()]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
"text_to_voice": "openai",
|
"text_to_voice": "openai",
|
||||||
"proxy": "",
|
"proxy": "",
|
||||||
"hot_reload": true,
|
"hot_reload": true,
|
||||||
"single_chat_prefix": [""],
|
"group_at_off": false,
|
||||||
|
"single_chat_prefix": ["bot", "@bot"],
|
||||||
"single_chat_reply_prefix": "[bot]",
|
"single_chat_reply_prefix": "[bot]",
|
||||||
"group_chat_prefix": [
|
"group_chat_prefix": [
|
||||||
"@bot"
|
"@bot"
|
||||||
|
|||||||
Reference in New Issue
Block a user