facebook处理

This commit is contained in:
hahwu 2025-01-21 17:54:13 +08:00
parent e351036f51
commit cf0047bd99

View File

@ -245,6 +245,7 @@ func (p *PlayerBaseData) ReqBindFacebookAccount(player *Player, buf []byte) {
BaseMod.FackBookId = req.BindAccountId
agent := player.GetAgentByPlayer()
data, _ := proto.Marshal(res)
p.SaveDataFromDB("")
G_getGameLogic().PackResInfo(agent, "ResBindFacebookAccount", data)
}
@ -261,6 +262,7 @@ func (p *PlayerBaseData) ReqUnBindFacebook(player *Player, buf []byte) {
agent := player.GetAgentByPlayer()
data, _ := proto.Marshal(res)
G_getGameLogic().PackResInfo(agent, "ResUnBindFacebook", data)
p.SaveDataFromDB("")
player.TeLog("platform_disconnect", map[string]interface{}{
"platform_type": "facebook",
"platform_id": req.BindAccountId,
@ -322,7 +324,7 @@ func (p *PlayerBaseData) ReqOnlyBindFacebook(player *Player, buf []byte) {
res.BindAccountId = req.BindAccountId
}
p.SaveDataFromDB("")
agent := player.GetAgentByPlayer()
data, _ := proto.Marshal(res)
G_getGameLogic().PackResInfo(agent, "ResOnlyBindFacebook", data)
@ -412,7 +414,7 @@ func (p *PlayerBaseData) ReqSynGameData(player *Player, buf []byte) {
res.ResultCode = 0
}
p.SaveDataFromDB("")
agent := player.GetAgentByPlayer()
data, _ := proto.Marshal(res)
G_getGameLogic().PackResInfo(agent, "ResSynGameData", data)