spot.setImage(res);
} catch (Exception e) {
throw new RuntimeException(e.getMessage(), e);
}
if(StringUtils.hasText(vo.getPlaceId())){
Place place = placeRepository.findOne(vo.getPlaceId());
if(place!=null){
CityMeta city = cityMetaRepository.getByName(place.getCity());
if(city!=null){
spot.setCity(city.getPinyin());
}
spot.setLngLat(place.getLngLat());
spot.setPlace(place);
}
}else if(!StringUtils.hasText(spot.getCity())){
spot.setCity(ApplicationConfig.defaultCityPinyin);
}