fixed
This commit is contained in:
@@ -54,18 +54,11 @@ class Reporttt
|
|||||||
return json(Tools::set_fail('用户不存在'));
|
return json(Tools::set_fail('用户不存在'));
|
||||||
}
|
}
|
||||||
|
|
||||||
//$day3 = date('Y-m-d 00:00:00',strtotime('-3 day'));
|
|
||||||
$his_record = Db::table('fa_tt_chathistory')
|
|
||||||
//->where('username',$user['username'])
|
|
||||||
->order('id asc')
|
|
||||||
//->where('create_time','>',$day3)//3天之内
|
|
||||||
->select();
|
|
||||||
$config = [
|
$config = [
|
||||||
'stream'=>false,
|
'stream'=>false,
|
||||||
];
|
];
|
||||||
|
|
||||||
$basedata = [
|
$basedata = [
|
||||||
'doctor'=>input('doctor',''),//所属医生
|
|
||||||
'name'=>input('name',''),//病人姓名
|
'name'=>input('name',''),//病人姓名
|
||||||
'gender'=>input('gender',''),//病人性别
|
'gender'=>input('gender',''),//病人性别
|
||||||
'age'=>input('age',''),//病人年龄
|
'age'=>input('age',''),//病人年龄
|
||||||
@@ -91,9 +84,7 @@ class Reporttt
|
|||||||
return json(Tools::set_fail('content必须'));
|
return json(Tools::set_fail('content必须'));
|
||||||
}
|
}
|
||||||
$content = json_decode($contentstr,true);
|
$content = json_decode($contentstr,true);
|
||||||
//foreach ($his_record as $item){
|
|
||||||
// $content[] = ["role" => "user", "content" => $item['chat_msg']];
|
|
||||||
//}
|
|
||||||
$chatobj->setBefore($content);
|
$chatobj->setBefore($content);
|
||||||
|
|
||||||
$chatobj->chat($question,$config,$answer_json_arr);
|
$chatobj->chat($question,$config,$answer_json_arr);
|
||||||
|
|||||||
Reference in New Issue
Block a user