fuyu 5 years ago
parent
commit
ae4810f28c
1 changed files with 2 additions and 6 deletions
  1. 2 6
      application/inter/controller/Dcquery.php

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

@@ -13,6 +13,7 @@ use think\Controller;
 use think\Request;
 use think\Db;
 use think\Cache;
+use think\exception\HttpResponseException;
 
 class Dcquery extends Controller
 {
@@ -132,16 +133,11 @@ class Dcquery extends Controller
             if($study_id && strlen($study_id) == '16') {
                 $study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id')->find();
             } else if($study_uid) {
-                var_dump($study_uid);
-                die;
                 $study_info = DB::table('studies')->where('studyuid', $study_uid)->field('id,studyuid,studyid,patient_id')->find();
             } else if($acc_num) {
-                var_dump(1);
-                die;
                 $study_info = DB::table('studies')->where('accession_num', $acc_num)->field('id,studyuid,studyid,patient_id')->find();
             } else {
-                var_dump(2);
-                die;
+                throw HttpResponseException('没有查找到对应检查');
             }
             // if(strlen($study_id) == '16'){
             //     $study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id')->find();