获取下级推广员bug修改

master
chenxiaojun 5 years ago
parent ea3e0015bf
commit cff2dc911a

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

Loading…
Cancel
Save