1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user