完成友链模块 #12
@ -41,10 +41,11 @@ public function __construct()
|
||||
$this->data = array_merge($this->data, ['GonganCode' => $data[0]]);
|
||||
}
|
||||
if (Auth::check()) {
|
||||
$this->data = array_merge($this->data,[
|
||||
$this->data = array_merge($this->data, [
|
||||
'userName' => Auth::user()->username,
|
||||
'userEmail' => Auth::user()->email,
|
||||
'userIcon' => Auth::user()->icon]);
|
||||
'userIcon' => Auth::user()->icon,
|
||||
'userAdmin' => Auth::user()->admin]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -63,6 +64,18 @@ protected function ViewAboutMe(): Factory|View|Application
|
||||
return view('about', $this->data);
|
||||
}
|
||||
|
||||
protected function viewPageNotFounded(): Factory|View|Application
|
||||
{
|
||||
$this->data['webSubTitle'] = '页面未找到';
|
||||
return view('modules.404', $this->data);
|
||||
}
|
||||
|
||||
protected function viewNoPermission(): Factory|View|Application
|
||||
{
|
||||
$this->data['webSubTitle'] = '没有权限';
|
||||
return view('modules.no-permission', $this->data);
|
||||
}
|
||||
|
||||
private function MarkdownToStringReplace(string $dataBase): string
|
||||
{
|
||||
$decodeText = MarkdownExtra::defaultTransform($dataBase);
|
||||
|
Loading…
x
Reference in New Issue
Block a user