fixed sent server time

This commit is contained in:
2023-06-25 18:29:31 -05:00
parent 8f00a0c492
commit c09a6cfd25
4 changed files with 13 additions and 12 deletions

View File

@@ -5,7 +5,6 @@ import (
"fmt"
"log"
"math/rand"
"time"
"github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/core/db"
@@ -34,7 +33,7 @@ func (server *LoginServer) AcceptLogin(peer *protocol.CNPeer, SzID string, IClie
ISlotNum: ISlotNum,
IPaymentFlag: 1,
IOpenBetaFlag: 0,
UiSvrTime: uint64(time.Now().Unix()),
UiSvrTime: protocol.GetTime(),
}
if err := peer.Send(protocol.P_LS2CL_REP_LOGIN_SUCC, resp); err != nil {