diff --git a/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java b/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java index 54288104..011da9fa 100644 --- a/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java +++ b/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java @@ -265,7 +265,7 @@ public class WeatherForecastController extends BaseController { return AjaxResult.success(redisCache.getCacheObject("currentWeatherAndForecastInformation" + numStake)); } } else { - return AjaxResult.error(jsonResult.getInteger("code"), UniversalEnum.REQUEST_FAILED.getValue()); + return AjaxResult.success(redisCache.getCacheObject("currentWeatherAndForecastInformation" + numStake)); } } } catch (Exception ignored) { @@ -273,7 +273,7 @@ public class WeatherForecastController extends BaseController { logger.error(String.valueOf(ignored)); } - return AjaxResult.error(UniversalEnum.REQUEST_FAILED.getValue()); + return AjaxResult.success(redisCache.getCacheObject("currentWeatherAndForecastInformation" + numStake)); } public static int findNearestMultipleOfFive(int number) {