This commit is contained in:
Putoo
2026-05-27 18:26:50 +08:00
parent 36a7575990
commit 0d5443ef36
28 changed files with 1043 additions and 25 deletions

View File

@@ -70,7 +70,8 @@ public class UserController : ControllerBase
object acc = new { accInfo.teach };
var online = await _mapService.GetUserOnMap(userInfo.userId);
int isOnline = online.upTime > TimeExtend.GetTimeStampBySeconds(DateTime.Now.AddMinutes(GameConfig.OnLineTime))
int isOnline = online.upTime >
TimeExtend.GetTimeStampBySeconds(DateTime.Now.AddMinutes(0 - GameConfig.OnLineTime))
? 1
: 0;
var onMapInfo = await _mapService.GetMapInfo(online.mapId);