root 5 年 前
コミット
6fb74ecd49
1 ファイル変更2 行追加2 行削除
  1. 2 2
      application/inter/controller/Dcquery.php

+ 2 - 2
application/inter/controller/Dcquery.php

@@ -139,7 +139,7 @@ class Dcquery extends Controller
                 $study_info = DB::table('studies')->where('accession_num', $acc_num)->field('id,studyuid,studyid,patient_id')->find();
             }
             if(!$study_info) {
-                throw new HttpResponseException('没有查找到对应检查');
+                return '没有查找到对应检查';
             }
             // if(strlen($study_id) == '16'){
             //     $study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id')->find();
@@ -161,7 +161,7 @@ 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)){
-                throw new \think\Exception('series列表中影像为空');
+                return 'series列表中影像为空';
             }
             $series = $this->testHandleSeires($series_list , $images_list , $url);