This commit is contained in:
2024-07-13 16:54:56 +08:00
parent 1963f8fa80
commit 4b17858a7f

View File

@@ -75,8 +75,9 @@ class Reportty
$choices = $item['choices'];
foreach ($choices as $choice){
$data = [
'doctor'=>$user['doctor'],
'username'=>$user['username'],
'doctor'=>$user['username'],
//病人
'username'=>Db::table('fa_users')->where('doctor',$user['username'])->value('username'),
'report_content'=>$choice['message']['content'],
];
Db::table('fa_ty_medical_report')->insert($data);