123333
This commit is contained in:
@@ -61,6 +61,14 @@ public class SettleService {
|
|||||||
Long userId = room.getCallUserData().getId();
|
Long userId = room.getCallUserData().getId();
|
||||||
Integer price = room.getRoomData().getCallPrice();
|
Integer price = room.getRoomData().getCallPrice();
|
||||||
settleService.withholdingFeeUser(userId,Long.valueOf(price),room);
|
settleService.withholdingFeeUser(userId,Long.valueOf(price),room);
|
||||||
|
// 给双方推送可通话时长
|
||||||
|
try {
|
||||||
|
Long time = roomService.canCallTime(room);
|
||||||
|
List<String> keys = roomCtxCache.getSessionKeysByRoomId(roomId);
|
||||||
|
RoomWebSocketUtil.sendSendMessage(keys, WsRMsgGen.canCallTime(time));
|
||||||
|
}catch (Exception e){
|
||||||
|
log.error("扣费后-推送可通话时长失败!",e);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
log.error("预扣费失败!准备挂断电话",e);
|
log.error("预扣费失败!准备挂断电话",e);
|
||||||
|
|||||||
Reference in New Issue
Block a user