Explorar o código

排班为空也能提交

lizhen_gitee hai 10 meses
pai
achega
252bf6f5c4
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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){