作者 赵彬吉

update

@@ -6,6 +6,7 @@ use App\Enums\Common\Code; @@ -6,6 +6,7 @@ use App\Enums\Common\Code;
6 use App\Enums\Common\Common; 6 use App\Enums\Common\Common;
7 use App\Models\Manage\LoginLog; 7 use App\Models\Manage\LoginLog;
8 use App\Models\Manage\Manage; 8 use App\Models\Manage\Manage;
  9 +use App\Models\Manage\ManageHr;
9 use App\Models\Manage\MenuSpecial; 10 use App\Models\Manage\MenuSpecial;
10 use App\Models\Service\Service; 11 use App\Models\Service\Service;
11 use App\Models\Sms\SmsLog; 12 use App\Models\Sms\SmsLog;
@@ -68,6 +69,8 @@ class LoginLogic extends BaseLogic @@ -68,6 +69,8 @@ class LoginLogic extends BaseLogic
68 LoginLog::addLog($manage->id,$type); 69 LoginLog::addLog($manage->id,$type);
69 //获取当前用户特殊模块权限 70 //获取当前用户特殊模块权限
70 $manage['special'] = $this->getSpecialMenu($manage['id']); 71 $manage['special'] = $this->getSpecialMenu($manage['id']);
  72 + //岗位
  73 + $manage['entry_position'] = ManageHr::where('manage_id', $manage['id'])->value('entry_position')?:0;
71 return $this->success($manage->makeVisible('token')->toArray()); 74 return $this->success($manage->makeVisible('token')->toArray());
72 } 75 }
73 76