refactor: 重构权限服务类

This commit is contained in:
Ying
2023-07-03 10:08:34 +08:00
parent 8becf0ef36
commit 4e377def8d
42 changed files with 1679 additions and 1524 deletions

View File

@@ -190,7 +190,7 @@ class Third extends HomeController
'ref' => input('ref', request()->server('HTTP_REFERER', '/')),
];
return $this->redirect("/third/login?" . http_build_query($buildQuery));
return $this->redirect("/index/third/login?" . http_build_query($buildQuery));
}
return $this->error('请先登录');

View File

@@ -308,12 +308,13 @@ class User extends HomeController
* @throws DataNotFoundException
* @throws DbException
* @throws ModelNotFoundException
* @throws OperateException
*/
public function viewMessage(Request $request): Response
{
$id = input('id', 0);
$result = UserService::viewMessage($id, $request->userId);
return view('message_view', [
return view('/user/message_view', [
'msgInfo' => $result['msgInfo'],
'unread' => $result['unread'],
]);