12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * SdkList.php UTF-8
- * SDK订单列表
- *
- * @date : 2018/5/19 14:25
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : wuyonghong <wyh@huosdk.com>
- * @version : HUOSDK 8.0
- */
- namespace huo\controller\wallet;
- use huo\controller\common\Base;
- use huo\logic\agent\AgentLogic;
- use huo\logic\order\SdkListLogic;
- use huolib\status\OrderStatus;
- class SdkList extends Base {
- /**
- * 获取渠道下玩家订单列表
- *
- * @param int $agent_id
- * @param array $where
- * @param string $page
- * @param string $order
- *
- * @return array
- */
- public function getAgentList($agent_id, $where, $page = '1,10', $order = '-create_time') {
- $_agent_ids = (new AgentLogic())->getAgentIds($agent_id, true);
- $_map = $where;
- $_map['agent_id'] = ['in', $_agent_ids];
- $_rdata = (new SdkListLogic())->getAgentList($_map, $page, $order);
- $_code = OrderStatus::NO_ERROR;
- return $this->retSucMsg($_code, $_rdata);
- }
- }
|