登录优化

This commit is contained in:
hahwu 2025-06-19 12:29:29 +08:00
parent 52e1427b08
commit a1a5d735d4
4 changed files with 3 additions and 4 deletions

View File

@ -14,8 +14,8 @@ import (
)
const (
SIGN_NAME = "阿里云短信测试"
TEMPLATE_CODE = "SMS_154950909"
SIGN_NAME = "蹊径厦门科技"
TEMPLATE_CODE = "SMS_489510110"
)
// Description:

View File

@ -566,7 +566,6 @@ func (ad *GameLogic) ReplaceExistPlayerAndAgent(a gate.Agent, player *Player) er
if ok {
Timer.Stop()
}
player.LoginBackData()
SyncFriendMsg(player)
log.Debug("player %d 重连", player.M_DwUin)
return nil

View File

@ -261,7 +261,6 @@ func (p *Player) InitPlayer(UserName string) error {
p.ZeroUpdate(nil)
p.NoonUpdate(nil)
p.Login()
p.LoginBackData()
// GoUtil.RegisterEvent(MergeConst.Notify_Daily_Renew, p.ZeroUpdate, p)
// GoUtil.RegisterEvent(MergeConst.Notify_Midday_Renew, p.ZeroUpdate, p)
SyncFriendMsg(p)

View File

@ -184,6 +184,7 @@ func HandleClientReq(args []interface{}) {
p, _ := internal.Agents.Load(a)
if p != nil {
p.(*Player).PushClientRes(ResLogin)
p.(*Player).LoginBackData()
G_GameLogicPtr.AddLog(&Log{
Uid: p.(*Player).M_DwUin,
EventName: "Login_log",