소스 검색

排班为空也能提交

lizhen_gitee 10 달 전
부모
커밋
252bf6f5c4
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      application/api/controller/doctor/Index.php

+ 4 - 0
application/api/controller/doctor/Index.php

@@ -117,6 +117,10 @@ class Index extends Apic
             $this->error();
         }
 
+        if(empty($active_data)){
+            $this->success();
+        }
+
         $old_active = [];//需要删除的
         foreach($active_data as $key => $val){