12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace huo\controller\agent;
- use huo\controller\common\Base;
- use huo\logic\agent\AgentListLogic;
- use huo\logic\agent\AgentLogic;
- use huolib\status\MemberStatus;
- class AgentList extends Base {
-
- public function getAgentList($agent_id, $param = [], $page = '1,10') {
- $_map = $param;
- $_agent_ids = (new AgentLogic())->getAgentIds($agent_id, true);
- $_map['parent_id'] = $agent_id;
- $_map['agent_id'] = ['in', $_agent_ids];
- $_data = (new AgentListLogic())->getAgentList($_map, $page);
- $_code = MemberStatus::NO_ERROR;
- return $this->huoSuccess($_code, MemberStatus::getMsg($_code), $_data);
- }
- }
|