private ListCarModel getCarModelListlong userId ListCarModel carModelList = GMmegetCarModelList; UserIdType userIdType = GMmecheckUserIduserId; if userIdType == UserIdTypeCAR_USER
private List
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;
原文地址: https://www.cveoy.top/t/topic/iAJx 著作权归作者所有。请勿转载和采集!