diff --git a/application/api/controller/User.php b/application/api/controller/User.php index e953963..92485b2 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -1957,6 +1957,19 @@ class User extends Base $board_res = $this->board_to_journal_obj->where('user_id', $user_info['user_id'])->where('state', 0)->find(); if ($board_res != null) { $roles[] = 'board'; + + //判断用户角色 0主编1副主编2编委成员 chengxiaoling 20250827 start + $iType = isset($board_res['type']) ? $board_res['type'] : '-1'; + if($iType == 0){ + $roles[] = 'chief_editor'; + } + if($iType == 1){ + $roles[] = 'deputy_editor'; + } + if($iType == 2){ + $roles[] = 'editor_board'; + } + //判断用户角色 0主编1副主编2编委成员 chengxiaoling 20250827 end } $special_res = $this->user_to_special_obj->where('user_id', $user_info['user_id'])->where("uts_state", 0)->find(); if ($special_res != null) {