获取下级推广员bug修改

master
chenxiaojun 5 years ago
parent ea3e0015bf
commit cff2dc911a

@ -2134,14 +2134,8 @@ class QueryController extends BaseController
public function getChildPromoteList() public function getChildPromoteList()
{ {
$promoteId = I('post.promote_id', 0); $promoteId = intval(I('post.promote_id', 0));
if ($promoteId == 0) { $promoteId = empty($promoteId) ? PID : $promoteId;
$data['status'] = 0;
$data['msg'] = '数据异常';
$this->ajaxReturn($data);
}
$promoteList = getAllPromoteListByType(3, false, $promoteId); $promoteList = getAllPromoteListByType(3, false, $promoteId);
$data['status'] = 1; $data['status'] = 1;
$data['data'] = $promoteList; $data['data'] = $promoteList;

Loading…
Cancel
Save