Pārlūkot izejas kodu

排班为空也能提交

lizhen_gitee 10 mēneši atpakaļ
vecāks
revīzija
252bf6f5c4
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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){