checkToken(); if ($token['code'] < 0) { echo $this->response($token); exit; } } /** * 会员等级列表 */ public function lists() { $condition = [ ['site_id', '=', $this->site_id], ['level_type', '=', 0] ]; $list = (new MemberLevelModel())->getMemberLevelList($condition, 'level_id, level_name', 'growth asc'); return $this->response($list); } }