SdkList.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * SdkList.php UTF-8
  4. * SDK订单列表
  5. *
  6. * @date : 2018/5/19 14:25
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : wuyonghong <wyh@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace huo\controller\wallet;
  13. use huo\controller\common\Base;
  14. use huo\logic\agent\AgentLogic;
  15. use huo\logic\order\SdkListLogic;
  16. use huolib\status\OrderStatus;
  17. class SdkList extends Base {
  18. /**
  19. * 获取渠道下玩家订单列表
  20. *
  21. * @param int $agent_id
  22. * @param array $where
  23. * @param string $page
  24. * @param string $order
  25. *
  26. * @return array
  27. */
  28. public function getAgentList($agent_id, $where, $page = '1,10', $order = '-create_time') {
  29. $_agent_ids = (new AgentLogic())->getAgentIds($agent_id, true);
  30. $_map = $where;
  31. $_map['agent_id'] = ['in', $_agent_ids];
  32. $_rdata = (new SdkListLogic())->getAgentList($_map, $page, $order);
  33. $_code = OrderStatus::NO_ERROR;
  34. return $this->retSucMsg($_code, $_rdata);
  35. }
  36. }