12345678910111213141516171819202122232425262728293031323334 |
- <?php
- declare (strict_types=1);
- namespace app\store\controller;
- use app\store\model\ActEffectStatistics as ActEffectStatisticsModel;
- /**
- * 活动效果统计列表
- *
- * Class ActEffectStatistics
- * @package app\store\controller
- */
- class ActEffectStatistics extends Controller
- {
- public function list()
- {
- $model = new ActEffectStatisticsModel;
- $list = $model->getList($this->request->param());
- return $this->renderSuccess(compact('list'));
- }
- /**
- * 刷新数据
- */
- public function refresh()
- {
- $date = date('Y-m-d');
- \app\api\model\ActEffectStatistics::addData($date);
- return $this->renderSuccess();
- }
- }
|