fix bug
This commit is contained in:
@@ -21,4 +21,12 @@ class About
|
||||
}
|
||||
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"]]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user