refactor: 重构权限服务类
This commit is contained in:
@@ -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('请先登录');
|
||||
|
||||
@@ -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'],
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user