AnalyseController.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 运营分析
  4. */
  5. namespace app\v1\controller\gameLog;
  6. use app\v1\logic\gameLog\AnalyseLogic;
  7. use plugin\saiadmin\basic\BaseController;
  8. use support\Request;
  9. use support\Response;
  10. class AnalyseController extends BaseController
  11. {
  12. public function __construct()
  13. {
  14. $this->logic = new AnalyseLogic();
  15. parent::__construct();
  16. }
  17. // 注册按日
  18. public function getRegDayDataList(Request $request){
  19. $where = $request->more([
  20. ['game_id', ''],
  21. ['reg_date', '']
  22. ]);
  23. $data = $this->logic->getRegDayDataList($where);
  24. $data['data'] = $this->logic->trandformListColumn($data['data'],['game']);
  25. return $this->success($data);
  26. }
  27. // 注册按时s
  28. public function getRegHourDataList(Request $request){
  29. $where = $request->more([
  30. ['game_id', ''],
  31. ['reg_date', '']
  32. ]);
  33. $data = $this->logic->getRegHourDataList($where);
  34. $data['data'] = $this->logic->trandformListColumn($data['data'],['game']);
  35. return $this->success($data);
  36. }
  37. }