Files
heping-api/app/controller/About.php
2022-09-09 15:16:22 +08:00

24 lines
675 B
PHP

<?php
namespace app\controller;
use think\facade\Db;
class About
{
public function rule()
{
$info = Db::name("config")->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"]]);
}
}