diff --git a/application/api/controller/Redpacket.php b/application/api/controller/Redpacket.php index 9bc90745..b026305b 100644 --- a/application/api/controller/Redpacket.php +++ b/application/api/controller/Redpacket.php @@ -116,4 +116,12 @@ class Redpacket extends BaseCom } return V(1, '获取成功', $result); } + + //红包配置信息 + public function redpacketConfig(){ + + $result['red_packet_min_amount'] = get_system_config_value('red_packet_min_amount') ?? 0; + $result['red_packet_fee'] = get_system_config_value('red_packet_fee') ?? 0; + return V(1, '获取成功', $result); + } } \ No newline at end of file