From 32329947a315f767dc0efc2535f8d9885400d203 Mon Sep 17 00:00:00 2001 From: Karson Date: Thu, 15 Jan 2026 11:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/extra/site.php | 1 + application/index/controller/User.php | 1 + application/index/view/user/agreement.html | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/application/extra/site.php b/application/extra/site.php index 9f282bbb..9d7b3cf1 100644 --- a/application/extra/site.php +++ b/application/extra/site.php @@ -12,6 +12,7 @@ return [ 'frontend' => 'zh-cn', ], 'fixedpage' => 'dashboard', + 'agreement' => '协议内容', 'categorytype' => [ 'default' => 'Default', 'page' => 'Page', diff --git a/application/index/controller/User.php b/application/index/controller/User.php index a12ee7e6..aef223f9 100644 --- a/application/index/controller/User.php +++ b/application/index/controller/User.php @@ -400,6 +400,7 @@ class User extends Frontend public function agreement() { $this->view->assign('title', __('User agreement')); + $this->view->assign('content', xss_clean(config('site.agreement'))); return $this->view->fetch(); } } diff --git a/application/index/view/user/agreement.html b/application/index/view/user/agreement.html index 0f944ea2..1484e03d 100644 --- a/application/index/view/user/agreement.html +++ b/application/index/view/user/agreement.html @@ -1,7 +1,8 @@
-

用户协议

+

{$title}

-

用户协议内容

+

{:$content}

+