Browse Source

排班为空也能提交

lizhen_gitee 11 tháng trước cách đây
mục cha
commit
252bf6f5c4
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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){