This commit is contained in:
dute7liang
2024-01-25 21:55:44 +08:00
parent dc1113deff
commit b0ff90a0a0
2 changed files with 1 additions and 8 deletions

View File

@@ -156,15 +156,12 @@ public class SettleService {
Long callId = room.getCallUserData().getId(); Long callId = room.getCallUserData().getId();
Long receiveId = room.getReceiverUserData().getId(); Long receiveId = room.getReceiverUserData().getId();
if(callTime > 0){ if(callTime > 0){
ImDataRes imDataRes = ImMsgGen.callNotice(4, callId, receiveId, callTime);
yunxin.sendToSync(callId,receiveId,imDataRes);
yunxinWsService.sendToCallNotifyAsync(callId,receiveId,4,callTime); yunxinWsService.sendToCallNotifyAsync(callId,receiveId,4,callTime);
} }
// 接收方通知 // 接收方通知
Long anchorIncome = resp.getAnchorIncome(); Long anchorIncome = resp.getAnchorIncome();
if(anchorIncome > 0){ if(anchorIncome > 0){
ImDataRes imDataRes = ImMsgGen.callNotice(4, receiveId, callId, callTime); yunxinWsService.sendToCallNotifyAsync(receiveId,callId,4,callTime);
yunxin.sendToSync(receiveId,callId,imDataRes);
// 收入通知 // 收入通知
// ImMsgGen.videoIncome(); // ImMsgGen.videoIncome();
// yunxin.sendTo(receiveId,null,) // yunxin.sendTo(receiveId,null,)

View File

@@ -27,10 +27,6 @@ public class Yunxin {
@Resource @Resource
private ImMessageClient messageClient; private ImMessageClient messageClient;
public void sendToSync(Long toUid,Long fromUid,Object data){
this.sendTo(toUid,fromUid,data);
}
public YxDataR<SendMsgResp> sendTo(Long toUid,Long fromUid,Object data){ public YxDataR<SendMsgResp> sendTo(Long toUid,Long fromUid,Object data){
SendMsgReq req = new SendMsgReq(); SendMsgReq req = new SendMsgReq();
req.setFrom(fromUid == null ? yunxinProperties.getDefaultFromUid() : fromUid+""); req.setFrom(fromUid == null ? yunxinProperties.getDefaultFromUid() : fromUid+"");