This commit is contained in:
77
2024-04-16 00:50:52 +08:00
parent d531e4cadb
commit 8f5af2af68
8 changed files with 45 additions and 48 deletions

View File

@@ -1,11 +1,14 @@
package com.ruoyi.test.business;
import com.alibaba.fastjson.JSON;
import com.ruoyi.cai.trd.Agora;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.List;
@SpringBootTest
@Slf4j
public class AgoreTest {
@@ -15,8 +18,12 @@ public class AgoreTest {
@Test
public void closeChannel(){
Long roomId = 1779785009948024833L;
Long roomId = 1779868994539642881L;
// List<String> channelUsers = agora.getChannelUsers(roomId);
// System.out.println(JSON.toJSONString(channelUsers));
agora.closeChannel(roomId);
// agora.closeChannelByUser(roomId,2644L);
// agora.closeChannelByUser(roomId,3324L);
}
}