This commit is contained in:
2024-07-18 13:50:25 +08:00
parent 941ece6525
commit ccaf23c900

View File

@@ -122,8 +122,9 @@ class Reportty
//'username'=>Db::table('fa_ty_users')->where('doctor',$user['username'])->value('username'),
'report_content'=>$choice['message']['content'],
];
$res_content[] = $choice['message']['content'];
Db::table('fa_ty_medical_report')->insert($data);
$report_id = Db::table('fa_ty_medical_report')->insertGetId($data);
$res_content[] = ['report_id'=>$report_id,'report_content'=>$choice['message']['content']];
}
}
//点击生成报告删除历史聊天记录