|
@@ -315,7 +315,7 @@ public class AppUserController extends BaseController
|
|
@ApiOperation(value = "开关播", notes = "开关播")
|
|
@ApiOperation(value = "开关播", notes = "开关播")
|
|
public R<String> openLive(HttpServletResponse response, @RequestBody LiveLive liveLive)
|
|
public R<String> openLive(HttpServletResponse response, @RequestBody LiveLive liveLive)
|
|
{
|
|
{
|
|
- String url = sysConfigService.selectConfigByKey("sys_live_apiurl").concat("live/openCloseLive");
|
|
|
|
|
|
+ String url = sysConfigService.selectConfigByKey("sys_live_apiurl").concat("/api/live/httpOpenCloseLive");
|
|
Map<String, String> map = new HashMap<>();
|
|
Map<String, String> map = new HashMap<>();
|
|
map.put("roomId", String.valueOf(liveLive.getId()));
|
|
map.put("roomId", String.valueOf(liveLive.getId()));
|
|
map.put("liveType", "1");
|
|
map.put("liveType", "1");
|
|
@@ -323,7 +323,8 @@ public class AppUserController extends BaseController
|
|
map.put("description", liveLive.getTitle());
|
|
map.put("description", liveLive.getTitle());
|
|
|
|
|
|
String res = HttpClientUtils.ajaxPost(url,map);
|
|
String res = HttpClientUtils.ajaxPost(url,map);
|
|
- if(StringUtils.isBlank(res) || JSONObject.parseObject(res).getString("code") != "1"){
|
|
|
|
|
|
+ if(StringUtils.isBlank(res) || !JSONObject.parseObject(res).getString("code").equals("1")){
|
|
|
|
+ log.info("失败===============》》".concat(res));
|
|
return R.fail(liveLive.getIslive().intValue()==1?"关播":"虚拟开播"+"失败");
|
|
return R.fail(liveLive.getIslive().intValue()==1?"关播":"虚拟开播"+"失败");
|
|
}
|
|
}
|
|
return R.ok(liveLive.getIslive().intValue()==1?"关播":"虚拟开播"+"成功");
|
|
return R.ok(liveLive.getIslive().intValue()==1?"关播":"虚拟开播"+"成功");
|