Commit 88a8cf28 authored by shiyu's avatar shiyu

查询签到信息2

parent 04e5714a
...@@ -375,7 +375,11 @@ public class UserSigninServiceImpl implements UserSigninService { ...@@ -375,7 +375,11 @@ public class UserSigninServiceImpl implements UserSigninService {
String url = "https://quanku.wanwudezhi.com/daily_data"; String url = "https://quanku.wanwudezhi.com/daily_data";
OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(url); OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(url);
String responseStr = okHttpUtil.get().sync(); String responseStr = okHttpUtil.get().sync();
map.put("info", JsonUtils.toMap(responseStr)); map.put("suitable", JsonUtils.getValueByPath(responseStr, "yi"));
map.put("avoid", JsonUtils.getValueByPath(responseStr, "ji"));
map.put("lunar_date", JsonUtils.getValueByPath(responseStr, "lunar_date"));
map.put("author", JsonUtils.getValueByPath(responseStr, "quote/author"));
map.put("text", JsonUtils.getValueByPath(responseStr, "quote/text"));
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();
......
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