request->isGet()) { $list = ShopCategoryLogic::getList(); return JsonServer::success('获取成功', $list); } return JsonServer::error('请求方式错误'); } }