Commit bc3ef257 authored by shiyu's avatar shiyu

签到分享2

parent 7dcf501c
package com.wwdz.ch.wx.impl;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.wwdz.ch.core.consts.CommConsts;
import com.wwdz.ch.core.consts.DistributionEnum;
import com.wwdz.ch.core.consts.SigninEnum;
......@@ -18,6 +19,7 @@ import com.wwdz.ch.db.dto.request.UserSignInRequestDto;
import com.wwdz.ch.wx.entity.vo.SignInRewardVo;
import com.wwdz.ch.wx.service.UserSigninService;
import com.xxdxxs.utils.DateUtils;
import com.xxdxxs.utils.JsonUtils;
import com.xxdxxs.utils.StringUtils;
import org.json.JSONObject;
import org.slf4j.Logger;
......@@ -321,8 +323,7 @@ public class UserSigninServiceImpl implements UserSigninService {
String url = "https://quanku.wanwudezhi.com/daily_data";
OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(url);
String responseStr = okHttpUtil.get().sync();
JSONObject jsonObject = new JSONObject(responseStr);
map.put("info", jsonObject);
map.put("info", JsonUtils.toMap(responseStr));
String backgroundImage = "https://cdn.wanwudezhi.com/static/web-static/image/a193ed538686e6921cd3d611569043f5_1974x2964.jpeg";
map.put("backgroundImage", backgroundImage);
User user = cacheUtil.getAppletUserById(dto.getUserId());
......
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