From c2cfdccd880a8588bc446547c16beae6c6b95a1a Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Fri, 9 Sep 2022 15:16:22 +0800 Subject: [PATCH] code add --- app/controller/About.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/controller/About.php diff --git a/app/controller/About.php b/app/controller/About.php new file mode 100644 index 0000000..e3c08c8 --- /dev/null +++ b/app/controller/About.php @@ -0,0 +1,24 @@ +where("name", "rule")->find(); + if (empty($info) || empty($info['value'])) { + return show("用户协议未设置"); + } + return show("获取成功", SUCCESS_CODE, ["content" => $info["value"]]); + } + public function privacy() + { + $info = Db::name("config")->where("name", "yszc")->find(); + if (empty($info) || empty($info['value'])) { + return show("隐私政策未设置"); + } + return show("获取成功", SUCCESS_CODE, ["content" => $info["value"]]); + } +} \ No newline at end of file