This commit is contained in:
2026-10-13 21:52:02 +08:00
parent aad11be43d
commit fcfa04137b
15 changed files with 945 additions and 63 deletions
@@ -313,8 +313,16 @@ namespace FishGameService.Hubs
{
string cid = Context.ConnectionId;
var currentGold = await _fishingService.KillFish(cid, roomId, userId, fishNumber, fihsId, gold, timespan, bulletId, timestamp, sign);
return new { gold = currentGold, timestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() };
var result = await _fishingService.KillFish(cid, roomId, userId, fishNumber, fihsId, gold, timespan, bulletId, timestamp, sign);
return new
{
gold = result.gold,
gainExp = result.gainExp,
exp = result.exp,
level = result.level,
expMax = result.expMax,
timestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
};
}
public async Task LeaveRoom(string roomId, string userId)