瀏覽代碼

排班为空也能提交

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){