Commit 2ca45e6c authored by shiyu's avatar shiyu

查询签到分享信息2

parent 9b917a2e
...@@ -337,8 +337,10 @@ public class UserSigninServiceImpl implements UserSigninService { ...@@ -337,8 +337,10 @@ public class UserSigninServiceImpl implements UserSigninService {
String backgroundImage = "https://cdn.wanwudezhi.com/static/web-static/image/a193ed538686e6921cd3d611569043f5_1974x2964.jpeg"; String backgroundImage = "https://cdn.wanwudezhi.com/static/web-static/image/a193ed538686e6921cd3d611569043f5_1974x2964.jpeg";
if (Objects.isNull(redisUtils.get(formattedDate))) { if (Objects.isNull(redisUtils.get(formattedDate))) {
SignInShareImage signInShareImage = signInShareImageDao.findOne(); SignInShareImage signInShareImage = signInShareImageDao.findOne();
backgroundImage = signInShareImage.getImage(); if (signInShareImage != null) {
redisUtils.set(formattedDate, backgroundImage, 60 * 60 * 24); backgroundImage = signInShareImage.getImage();
redisUtils.set(formattedDate, backgroundImage, 60 * 60 * 24);
}
} else { } else {
backgroundImage = redisUtils.get(formattedDate).toString(); backgroundImage = redisUtils.get(formattedDate).toString();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment