后台优化

This commit is contained in:
hahwu 2025-07-17 14:52:45 +08:00
parent da8eefca45
commit 667f81f99d
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ func (ad *GameLogic) NewAccountInsertDataToDB() bool {
playerInfo.PackUnlockCount = 5
playerInfo.EnergyBuyCount = 0
playerInfo.UserName = ad.Db_AccountInfo.UserName
playerInfo.LoginTime = 0
playerInfo.LoginTime = (int32)(time.Now().Unix())
playerInfo.LogoutTime = 0
playerInfo.Todayolinetime = 0
playerInfo.Rolecreatetime = (int32)(time.Now().Unix())

View File

@ -120,7 +120,7 @@ func AdminPlayerInfo(args []interface{}) error {
res["Energy"] = player.GetPlayerBaseMod().GetEnergy()
res["Diamond"] = player.GetPlayerBaseMod().GetDiamond()
res["Mac"] = player.GetPlayerBaseMod().GetName()
res["Login"] = player.GetPlayerBaseMod().Data.LoginTime
res["Login"] = player.PlayMod.getBaseMod().LoginTime
res["Cumulative"] = player.PlayMod.getBaseMod().Cumulative
res["TodayCumulative"] = player.PlayMod.getBaseMod().TodayCumulative
if online {