facebook优化
This commit is contained in:
parent
32162baa7a
commit
459a9e7709
@ -308,8 +308,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",
|
||||
@ -322,8 +320,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)
|
||||
@ -383,7 +382,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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user