uid优化
This commit is contained in:
parent
b336e42f21
commit
a9e07f103a
@ -179,7 +179,7 @@ func (ad *GameLogic) NewAccountInsertDataToDB() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
insertId = insertId + int64(conf.Server.ServerID*100000) + int64(conf.Server.AppID*100000000)
|
insertId = insertId + int64(100000) + int64(conf.Server.AppID*100000000)
|
||||||
playerInfo := &db.ResPlayerBaseInfo{}
|
playerInfo := &db.ResPlayerBaseInfo{}
|
||||||
playerInfo.DwUin = int64(insertId)
|
playerInfo.DwUin = int64(insertId)
|
||||||
playerInfo.Energy = int32(userCfg.GetInitEnergy())
|
playerInfo.Energy = int32(userCfg.GetInitEnergy())
|
||||||
|
|||||||
@ -5319,7 +5319,7 @@ func ReqFriendByCode(player *Player, buf []byte) error {
|
|||||||
})
|
})
|
||||||
return fmt.Errorf("code is invalid")
|
return fmt.Errorf("code is invalid")
|
||||||
}
|
}
|
||||||
Uid := int64(CodeNum) + int64(conf.Server.ServerID*100000) + int64(conf.Server.AppID*100000000)
|
Uid := int64(CodeNum) + int64(100000) + int64(conf.Server.AppID*100000000)
|
||||||
if Uid == player.M_DwUin {
|
if Uid == player.M_DwUin {
|
||||||
player.SendErrClienRes(&msg.ResFriendByCode{
|
player.SendErrClienRes(&msg.ResFriendByCode{
|
||||||
Code: msg.RES_CODE_FAIL,
|
Code: msg.RES_CODE_FAIL,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user