1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-18 01:58:25 +08:00
2022-08-12 17:21:29 +08:00

31 lines
669 B
PHP

<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
namespace App\Http\Home\Controllers;
/**
* @RoutePrefix("/point")
*/
class PointController extends Controller
{
/**
* @Get("/rule", name="home.point.rule")
*/
public function ruleAction()
{
$point = $this->getSettings('point');
$consumeRule = json_decode($point['consume_rule']);
$eventRule = json_decode($point['event_rule']);
$this->view->setVar('consume_rule', $consumeRule);
$this->view->setVar('event_rule', $eventRule);
}
}