Jelajahi Sumber

代码优化

woody 2 tahun lalu
induk
melakukan
108d15363d

+ 1 - 1
framework-location/src/main/java/com/chelvc/framework/location/support/JuheMobileHandler.java

@@ -65,7 +65,7 @@ public class JuheMobileHandler implements MobileHandler {
         String province = ObjectUtils.ifNull(response.getResult(), JuheLocationResponse.Location::getProvince);
         String city = ObjectUtils.ifNull(response.getResult(), JuheLocationResponse.Location::getCity);
         String address = Stream.of(province, city).filter(StringUtils::nonEmpty).collect(Collectors.joining());
-        return StringUtils.ifEmpty(address, null);
+        return StringUtils.ifEmpty(address, (String) null);
     }
 
     @Override