This commit is contained in:
2024-07-18 11:42:31 +08:00
parent dce740a5e0
commit 93a05240ca
4 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@@ -17,3 +17,4 @@ composer.lock
node_modules node_modules
.user.ini .user.ini
.git .git
.git*

View File

@@ -18,3 +18,4 @@ node_modules
.user.ini .user.ini
.git .git
.git*

View File

@@ -56,9 +56,10 @@ class Reportty
return json(Tools::set_fail('用户不存在')); return json(Tools::set_fail('用户不存在'));
} }
//查询历史聊天记录
//$day3 = date('Y-m-d 00:00:00',strtotime('-3 day')); //$day3 = date('Y-m-d 00:00:00',strtotime('-3 day'));
$his_record = Db::table('fa_ty_chathistory') $his_record = Db::table('fa_ty_chathistory')
//->where('username',$user['username']) ->where('username',$user['username'])
->order('id asc') ->order('id asc')
//->where('createtime','>',$day3)//3天之内 //->where('createtime','>',$day3)//3天之内
->select(); ->select();
@@ -93,6 +94,11 @@ class Reportty
Db::table('fa_ty_medical_report')->insert($data); Db::table('fa_ty_medical_report')->insert($data);
} }
} }
//点击生成报告删除历史聊天记录
Db::table('fa_ty_chathistory')
->where('username',$user['username'])
->delete();
return json(Tools::set_ok($res_content)); return json(Tools::set_ok($res_content));
} }

View File

@@ -18,3 +18,4 @@ node_modules
.user.ini .user.ini
.git .git
.git*