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