wugg 3 years ago
parent
commit
1badc4f731
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/admin/controller/Role.php

+ 3 - 3
app/admin/controller/Role.php

@@ -104,9 +104,9 @@ class Role extends BaseController
 //            return error_show(1003,"该部门不存在");
 //        }
         $work_company = isset($post['work_company']) && $post['work_company'] !==""? intval($post['work_company']):"";
-        if($work_company==""){
-            return error_show(1002,"参数work_company不能为空");
-        }
+//        if($work_company==""){
+//            return error_show(1002,"参数work_company不能为空");
+//        }
         $level = isset($post['level']) ? intval($post['level']) : 0;
         $remark = isset($post['remark']) ? trim($post['remark']) : '';
 //        if($level==""){