fixed
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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',''),//病人年龄
|
||||
|
||||
Reference in New Issue
Block a user