123
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
package com.ruoyi.test.business;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.ruoyi.cai.notice.data.ImVideoAttachR;
|
||||
import com.ruoyi.cai.notice.data.child.ImVideoAttachData;
|
||||
import com.ruoyi.cai.ws.cache.RoomDataCache;
|
||||
import com.ruoyi.cai.ws.job.JobResp;
|
||||
import com.ruoyi.cai.ws.job.RoomCheckJobService;
|
||||
import com.ruoyi.cai.ws.service.RoomService;
|
||||
import com.ruoyi.yunxin.Yunxin;
|
||||
import com.ruoyi.yunxin.resp.YxCommonR;
|
||||
import com.ruoyi.yunxin.resp.YxDataR;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -35,4 +40,21 @@ public class RoomTest {
|
||||
boolean b = roomDataCache.setStatusAgree(roomId);
|
||||
log.error("结果 b:{}",b);
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private Yunxin yunxin;
|
||||
|
||||
@Test
|
||||
public void testCallBack(){
|
||||
Long roomId = 1L;
|
||||
Long callId = 1L;
|
||||
Long receiverId = 1L;
|
||||
ImVideoAttachData data = new ImVideoAttachData();
|
||||
data.setRoomid(roomId);
|
||||
ImVideoAttachR<ImVideoAttachData> res = ImVideoAttachR.ok(data);
|
||||
YxDataR<YxCommonR> r = yunxin.sendAttachMsg(callId, receiverId, res);
|
||||
if(r == null || !r.isSuccess()){
|
||||
log.error("云信发送失败【sendCallAsync】r={}", JSON.toJSONString(r));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user