master
jbrazz 5 years ago
parent 380c930686
commit 7396e69a61

@ -153,7 +153,10 @@ class AjaxController extends ThinkController{
public function getPromotersByLevel()
{
$level = I('level', 1);
$level = I('level');
if (!$level) {
return $this->ajaxReturn(['code'=>1, 'msg'=>'获取成功', 'data'=>[]]);
}
$this->ajaxReturn(['code'=>1, 'msg'=>'获取成功', 'data'=>(new PromoteModel)->getPromotersByLevel($level)]);
}

Loading…
Cancel
Save