|
@@ -49,6 +49,7 @@ import com.ym.mec.util.collection.MapUtil;
|
|
|
import com.ym.mec.util.date.DateUtil;
|
|
|
import com.ym.mec.util.excel.POIUtil;
|
|
|
import com.ym.mec.util.http.HttpUtil;
|
|
|
+import com.ym.mec.web.KLXFeignService;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.collections.MapUtils;
|
|
|
import org.apache.commons.lang3.RandomStringUtils;
|
|
@@ -137,6 +138,9 @@ public class ImLiveBroadcastRoomServiceImpl extends ServiceImpl<ImLiveBroadcastR
|
|
|
@Autowired
|
|
|
private ImGroupCoreService imGroupCoreService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private KLXFeignService klxFeignService;
|
|
|
+
|
|
|
|
|
|
//待替换的变量
|
|
|
public static final String USER_ID = "${userId}";
|
|
@@ -2775,6 +2779,11 @@ public class ImLiveBroadcastRoomServiceImpl extends ServiceImpl<ImLiveBroadcastR
|
|
|
roomConfig.setWhether_mic(whetherMic);
|
|
|
imLiveBroadcastRoom.setRoomConfig(JSONObject.toJSONString(roomConfig));
|
|
|
this.updateById(imLiveBroadcastRoom);
|
|
|
+
|
|
|
+ // 设置酷乐秀状态
|
|
|
+ CompletableFuture.runAsync(()->{
|
|
|
+ klxFeignService.whetherMic(roomUid,whetherMic);
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -2822,7 +2831,12 @@ public class ImLiveBroadcastRoomServiceImpl extends ServiceImpl<ImLiveBroadcastR
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- return this.updateById(imLiveBroadcastRoom);
|
|
|
+ this.updateById(imLiveBroadcastRoom);
|
|
|
+
|
|
|
+ CompletableFuture.runAsync(()->{
|
|
|
+ klxFeignService.updateRoomStatus(JSON.parseObject(JSON.toJSONString(liveRoom), com.ym.mec.dto.LiveRoomStatus.class));
|
|
|
+ });
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
|