ActEffectStatistics.php 695 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare (strict_types=1);
  3. namespace app\store\controller;
  4. use app\store\model\ActEffectStatistics as ActEffectStatisticsModel;
  5. /**
  6. * 活动效果统计列表
  7. *
  8. * Class ActEffectStatistics
  9. * @package app\store\controller
  10. */
  11. class ActEffectStatistics extends Controller
  12. {
  13. public function list()
  14. {
  15. $model = new ActEffectStatisticsModel;
  16. $list = $model->getList($this->request->param());
  17. return $this->renderSuccess(compact('list'));
  18. }
  19. /**
  20. * 刷新数据
  21. */
  22. public function refresh()
  23. {
  24. $date = date('Y-m-d');
  25. \app\api\model\ActEffectStatistics::addData($date);
  26. return $this->renderSuccess();
  27. }
  28. }