This commit is contained in:
dute7liang
2023-12-29 21:55:03 +08:00
parent 7ae0f94bb6
commit 01bb9912d9
18 changed files with 283 additions and 100 deletions

View File

@@ -97,6 +97,8 @@ public class WebSocketManager {
// 检查女神在线状态 TODO
// 关闭发起的其他房间
roomService.closeAllRoom(call.getFromUid());
// 删除旧房间记录
roomService.delCallRoom(call.getFromUid());

View File

@@ -139,7 +139,7 @@ public class RoomService {
}
RoomData roomData = room.getRoomData();
long blockAmount = roomData.getPayCoin() + roomData.getPayIncome();
long totalAmount = account.getTotalCoin()+account.getIncomeCoin() + blockAmount;
long totalAmount = account.getCoin()+account.getIncomeCoin() + blockAmount;
long totalSecond = (totalAmount / roomData.getCallPrice()) / 60;
long useTime = 0;
if(roomData.getBeginTime() != null){