This commit is contained in:
2024-08-05 17:47:36 +08:00
parent bb578274cf
commit d82923618c
2 changed files with 6 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ class Reporttt extends BaseHttpApi
'address'=>input('address',''),//地址
'phone'=>input('phone',''),//联系方式
'wechat_no'=>input('wechat_no',''),//微信号
'form'=>'num_per',
'from'=>input('from'),//来源
'ticket'=>$ticket,//对话票据'
'date'=>date('Y-m-d'),
'hdrdepartment_id'=>input('hdrdepartment_id'),//科室
@@ -146,7 +146,7 @@ class Reporttt extends BaseHttpApi
//];
//保存疼痛科聊天记录
$this->setTtChatHistory($sub_content,$username,$ticket);
$this->setTtChatHistory($sub_content,$user['username'],$ticket);
//chatGpt设置前置聊天上下文
$chatobj->setBefore($sub_content);

View File

@@ -124,11 +124,13 @@ class Reportty extends BaseHttpApi
//'username'=>Db::table('fa_ty_users')->where('doctor',$user['username'])->value('username'),
'report_content'=>$choice['message']['content'],
'ticket'=>$ticket,
'form'=>'ty',
//'from'=>input('from','ty'),//来源
];
$report_id = Db::table('fa_ty_medical_report')->insertGetId($data);
//日期
$data['date'] = date('Y-m-d');
//来源
$data['from'] = input('from','ty');
//统一存档
Db::table(TabConf::$fa_hdrmedical_report)->insert($data);
@@ -261,7 +263,7 @@ class Reportty extends BaseHttpApi
//新增统一基本信息
$base_data = [
'doctor'=>input('username'),
'form'=>'ty',
'from'=>input('from','ty'),
'name'=>input('name',''),
'gender'=>input('gender',''),//病人性别: M=男性, F=女性
'age'=>input('age',''),//病人年龄