request->get(); $classId = $get['classId'] ?? 0; $mainId = $this->mainId ?? 0; $where = []; $where['mainId'] = $mainId; $where['delStatus'] = 0; if (!empty($classId)) { $where['classId'] = $classId; } $respond = JhClass::getJhList($where); util::success($respond); } }