|
@@ -139,8 +139,9 @@ class Dcquery extends Controller
|
|
|
$study_info = DB::table('studies')->where('accession_num', $acc_num)->field('id,studyuid,studyid,patient_id')->find();
|
|
|
}
|
|
|
if(!$study_info) {
|
|
|
- // return '没有查找到对应检查';
|
|
|
- exception('异常消息', 10006);
|
|
|
+ return json_encode([
|
|
|
+ "error" => "没有匹配的检查"
|
|
|
+ ]);
|
|
|
}
|
|
|
// if(strlen($study_id) == '16'){
|
|
|
// $study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id')->find();
|
|
@@ -162,7 +163,9 @@ class Dcquery extends Controller
|
|
|
}
|
|
|
$images_list = DB::table('images')->where('series_id','in',$ids)->field('frame,series_id,cineRate,remote_url,local_url,status,columns,image_number as instanceNumber,rows,image_id as sopInstanceUid,metadata,url')->order('image_number asc')->select();
|
|
|
if(empty($images_list)){
|
|
|
- return 'series列表中影像为空';
|
|
|
+ return json_encode([
|
|
|
+ "error" => "series列表中影像为空"
|
|
|
+ ]);
|
|
|
}
|
|
|
$series = $this->testHandleSeires($series_list , $images_list , $url);
|
|
|
|