cqp 3 ヶ月 前
コミット
63388f750b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/Service/EmployeeService.php

+ 1 - 1
app/Service/EmployeeService.php

@@ -315,7 +315,7 @@ class EmployeeService extends Service
         if(! empty($data['is_admin'])){
             if(empty($data['password'])) return [false, '密码不能为空'];
             if(mb_strlen($data['password']) < 6) return [false, '密码长度不得小于6位长度'];
-            if(! empty($data['role'])) return [false, '角色不能为空'];
+            if(empty($data['role'])) return [false, '角色不能为空'];
         }
         $data['top_depart_id'] = $user['top_depart_id'];