提交 4eb6e9aa authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 41a0287a
......@@ -51,14 +51,17 @@ public class LiveController {
@PostMapping("/liveStatus")
public MicroRoarReturn LiveStatus(@RequestBody CallbackEventForm form) {
log.info("回调开始 form"+form);
String userId = form.getThird_user_id();
Example example = new Example(Live.class);
example.createCriteria().andEqualTo("userId", userId);
Live live = liveService.selectOneByExample(example);
MicroRoarReturn microRoarReturn = null;
Map<String, String> map = new HashMap<String, String>();
List<Live>liveList = liveService.selectAll();
for (Live l : liveList) {
if(live != null) {
String resp = "";
Map<String, String> map = new HashMap<String, String>();
try {
String param = JSONObject.toJSONString(form);
resp = HttpUtils.httpURLConnectionPOST(l.getUrl(), map, param);
resp = HttpUtils.httpURLConnectionPOST(live.getUrl(), map, param);
System.out.println(resp);
log.info("resp------------------------------------------------------"+resp);
log.info(resp);
......@@ -66,6 +69,7 @@ public class LiveController {
e.printStackTrace();
}
microRoarReturn = JSON.toJavaObject(JSONObject.parseObject(resp), MicroRoarReturn.class);
}
log.info("microRoarReturn-------------------------------"+microRoarReturn);
return microRoarReturn;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论