Prechádzať zdrojové kódy

[智价云] 查询更新

public 1 mesiac pred
rodič
commit
72629a44db

+ 1 - 1
app/Models/Manager/Personnel/RolesAuthRule.php

@@ -188,7 +188,7 @@ class RolesAuthRule extends Model
             $EmployeeModel = new EmployeeModel();
             $role_ids = $EmployeeModel->where([['id', '=', $uid]])->value('role_id');
             if (!$role_ids) return [];
-            $rules = $this->where([['roles_id', '=', $role_ids]])->pluck('url')->toArray();
+            $rules = $this->where([['role_id', '=', $role_ids]])->pluck('url')->toArray();
         }
         // 循环转大写
         foreach ($rules as $key => $rule) {