facebook优化

This commit is contained in:
hahwu 2025-01-22 11:01:17 +08:00
parent 77e686f97d
commit b2b9a8c2f9

View File

@ -309,8 +309,6 @@ func (p *PlayerBaseData) ReqOnlyBindFacebook(player *Player, buf []byte) {
res.ResultCode = 0
p.Data.FaceBookId = req.BindAccountId
BaseMod := player.PlayMod.getBaseMod()
BaseMod.FackBookId = req.BindAccountId
res.BindAccountId = req.BindAccountId
player.TeLog("platform_connect", map[string]interface{}{
"platform_type": "facebook",
@ -323,8 +321,9 @@ func (p *PlayerBaseData) ReqOnlyBindFacebook(player *Player, buf []byte) {
res.ResultCode = 0
p.Data.FaceBookId = req.BindAccountId
res.BindAccountId = req.BindAccountId
}
BaseMod := player.PlayMod.getBaseMod()
BaseMod.FackBookId = req.BindAccountId
p.SaveDataFromDB("")
agent := player.GetAgentByPlayer()
data, _ := proto.Marshal(res)
@ -384,7 +383,7 @@ func (p *PlayerBaseData) ReqSynGameData(player *Player, buf []byte) {
}
}
p.Data.UserName = ""
_, err := db.SqlDb.Exec("update t_player_baseinfo set user_name = ? where dwUin = ?", "", p.Data.DwUin)
_, err := db.SqlDb.Exec("update t_player_baseinfo set user_name = ? , FaceBookId = ? where dwUin = ?", "", "", p.Data.DwUin)
if err != nil {
tx.Rollback()
return