private List getCarModelList(long userId){ List carModelList = GM.me.getCarModelList();

UserIdType userIdType = GM.me.checkUserId(userId);
if (userIdType != UserIdType.CAR_USER || carModelList == null || carModelList.isEmpty()) {
    return carModelList;
}

List<CarModel> carModelListByUser = new ArrayList<>();
CarUser carUser = invokeGetCarUserInfoAction(userId);
if (carUser != null && carUser.getDrivingType() != null) {
    for (CarModel carModel : carModelList) {
        if (carModel.getCarType() != null && carUser.getDrivingType().contains(carModel.getCarType())) {
            carModelListByUser.add(carModel);
        }
    }
}
return carModelListByUser;
private ListCarModel getCarModelListlong userId ListCarModel carModelList = GMmegetCarModelList; UserIdType userIdType = GMmecheckUserIduserId; if userIdType == UserIdTypeCAR_USER

原文地址: https://www.cveoy.top/t/topic/iAJx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录