Browse Source

优化天气服务缓存

develop
zhaoxianglong 5 months ago
parent
commit
7f302467ab
  1. 2
      zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java

2
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.success(redisCache.getCacheObject("currentWeatherAndForecastInformation" + numStake));
return AjaxResult.error(jsonResult.getInteger("code"), UniversalEnum.REQUEST_FAILED.getValue());
}
}
} catch (Exception ignored) {

Loading…
Cancel
Save