From 2a25e3651b77f8c61a201e8f19a82a16a3886dcc Mon Sep 17 00:00:00 2001 From: zhaoxianglong Date: Wed, 3 Jul 2024 19:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=A9=E6=B0=94=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/controller/WeatherForecastController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {