登录优化
This commit is contained in:
parent
52e1427b08
commit
a1a5d735d4
@ -14,8 +14,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
SIGN_NAME = "阿里云短信测试"
|
||||
TEMPLATE_CODE = "SMS_154950909"
|
||||
SIGN_NAME = "蹊径厦门科技"
|
||||
TEMPLATE_CODE = "SMS_489510110"
|
||||
)
|
||||
|
||||
// Description:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user