This commit is contained in:
2024-07-18 18:28:35 +08:00
parent 3bb0c31408
commit 1336e6fee7
2 changed files with 3 additions and 1 deletions

View File

@@ -130,6 +130,7 @@ class Reporttt
$data[] = [ $data[] = [
'username'=>$user['username'],//登录的医生 'username'=>$user['username'],//登录的医生
'report_content'=>$choice['message']['content'], 'report_content'=>$choice['message']['content'],
'name'=>$basedata['name'],
]; ];
$res_content[] = $choice['message']['content']; $res_content[] = $choice['message']['content'];
} }
@@ -144,12 +145,12 @@ class Reporttt
//只新增不修改 //只新增不修改
Db::table('fa_tt_userbaseinfo')->insert($basedata); Db::table('fa_tt_userbaseinfo')->insert($basedata);
Db::commit(); Db::commit();
return json(Tools::set_ok(['basedata'=>$basedata,'res_content'=>$res_content]));
}catch (\Exception $e){ }catch (\Exception $e){
Db::rollback(); Db::rollback();
Tools::error_txt_log($e); Tools::error_txt_log($e);
return json(Tools::set_fail('新增报告失败.'.$e->getMessage())); return json(Tools::set_fail('新增报告失败.'.$e->getMessage()));
} }
return json(Tools::set_ok($res_content));
} }

View File

@@ -14,6 +14,7 @@ use wanghua\general_utility_tools_php\tool\Tools;
*/ */
class Followup extends Backend class Followup extends Backend
{ {
protected $noNeedRight = ['addfollowup','submitfollowup','addFollowUpTy','submitFollowUpTy'];
/** /**
* Followup模型对象 * Followup模型对象