刘桂岩 5 years ago
parent
commit
99cd29442d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/inter/controller/Application.php

+ 3 - 0
application/inter/controller/Application.php

@@ -174,6 +174,9 @@ class Application extends Base
             } else {
                 $parent_hosp = explode(',',$hospital['parent_institution']);
                 foreach($parent_hosp as $v){
+                    if(empty($v)){
+                        continue;
+                    }
                     $phname = DB::table("institution")->where('id',$v)->cache(300)->field(['id','name'])->find();
                     log::record('上级医院----'.json_encode($phname));
                     if(!isset($phname['id']) || empty($phname['id'])){