|
@@ -465,22 +465,21 @@ class Writereport extends Base
|
|
public function confirm(){
|
|
public function confirm(){
|
|
try{
|
|
try{
|
|
Log::record('confirm');
|
|
Log::record('confirm');
|
|
- Log::record($_REQUEST);
|
|
|
|
- die;
|
|
|
|
$is_remote = $_REQUEST['is_remote'];
|
|
$is_remote = $_REQUEST['is_remote'];
|
|
if($is_remote == 1){
|
|
if($is_remote == 1){
|
|
return json_encode(['status'=>'fail','code'=>'1133','msg'=>'远程无法确诊报告']);
|
|
return json_encode(['status'=>'fail','code'=>'1133','msg'=>'远程无法确诊报告']);
|
|
}
|
|
}
|
|
$sessionid = $_REQUEST['sessionid'];
|
|
$sessionid = $_REQUEST['sessionid'];
|
|
- Log::record($sessionid);
|
|
|
|
$doctor = Cache::get($sessionid);
|
|
$doctor = Cache::get($sessionid);
|
|
|
|
+ Log::record($doctor);
|
|
|
|
+ die;
|
|
$param = $_REQUEST['param'];
|
|
$param = $_REQUEST['param'];
|
|
Log::record($param);
|
|
Log::record($param);
|
|
$id = $param['id'];
|
|
$id = $param['id'];
|
|
$report_id = $param['report_id'];
|
|
$report_id = $param['report_id'];
|
|
$report_info = DB::table('report')->where('id',$report_id)->find();
|
|
$report_info = DB::table('report')->where('id',$report_id)->find();
|
|
Log::record($report_info);
|
|
Log::record($report_info);
|
|
-
|
|
|
|
|
|
+ die;
|
|
if($report_info['type'] == 1){
|
|
if($report_info['type'] == 1){
|
|
//本地报告
|
|
//本地报告
|
|
$status = DB::table('exams')->where('id',$id)->field('exam_status')->find();
|
|
$status = DB::table('exams')->where('id',$id)->field('exam_status')->find();
|