ReconciliationController.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. // 财务对帐
  3. namespace app\v1\controller\customer;
  4. use plugin\saiadmin\basic\BaseController;
  5. use app\v1\logic\customer\ReconciliationLogic;
  6. use app\v1\logic\gameLog\channelAnalysisLogic;
  7. use support\Request;
  8. use support\Response;
  9. class ReconciliationController extends BaseController
  10. {
  11. public function __construct()
  12. {
  13. $this->logic = new ReconciliationLogic();
  14. parent::__construct();
  15. }
  16. // 充值渠道收入;
  17. public function getChannelIncome(Request $request)
  18. {
  19. $where = $request->more([
  20. ['pay_date', ''],
  21. ['game_id', ''],
  22. ['pay_channel_id', ''],
  23. ]);
  24. $result = $this->logic->getChannelIncome($where);
  25. return $this->success($result);
  26. }
  27. // 渠道汇总(财务)
  28. public function getChannelSummary(Request $request)
  29. {
  30. $where = $request->more([
  31. ['game_id', ''],
  32. ['media_id', ''],
  33. ['agent_id', ''],
  34. ['site_id', ''],
  35. ['auth_id', ''],
  36. ['reg_date', ''],
  37. ['group', ''],
  38. ['filter', '']
  39. ]);
  40. $logic = new channelAnalysisLogic();
  41. $result = $logic->getAgentDataList($where);
  42. return $this->success($result);
  43. }
  44. }