This commit is contained in:
knowpia
2022-09-14 15:42:14 +08:00
parent 0ed064bc6e
commit 44351cefb5

View File

@@ -21,4 +21,12 @@ class About
} }
return show("获取成功", SUCCESS_CODE, ["content" => $info["value"]]); return show("获取成功", SUCCESS_CODE, ["content" => $info["value"]]);
} }
public function act_rule()
{
$info = Db::name("config")->where("name", "act_rule")->find();
if (empty($info) || empty($info['value'])) {
return show("活动规则未设置");
}
return show("获取成功", SUCCESS_CODE, ["content" => $info["value"]]);
}
} }