facebook优化

This commit is contained in:
hahwu 2025-01-21 15:30:57 +08:00
parent eea0ed6cdb
commit 02c916c11b

View File

@ -241,7 +241,8 @@ func (p *PlayerBaseData) ReqBindFacebookAccount(player *Player, buf []byte) {
"is_reward": false, "is_reward": false,
}) })
} }
BaseMod := player.PlayMod.getBaseMod()
BaseMod.FackBookId = req.BindAccountId
agent := player.GetAgentByPlayer() agent := player.GetAgentByPlayer()
data, _ := proto.Marshal(res) data, _ := proto.Marshal(res)
G_getGameLogic().PackResInfo(agent, "ResBindFacebookAccount", data) G_getGameLogic().PackResInfo(agent, "ResBindFacebookAccount", data)
@ -255,7 +256,8 @@ func (p *PlayerBaseData) ReqUnBindFacebook(player *Player, buf []byte) {
res.ResultCode = 0 res.ResultCode = 0
res.BindAccountId = req.BindAccountId res.BindAccountId = req.BindAccountId
p.Data.FaceBookId = "" p.Data.FaceBookId = ""
BaseMod := player.PlayMod.getBaseMod()
BaseMod.FackBookId = ""
agent := player.GetAgentByPlayer() agent := player.GetAgentByPlayer()
data, _ := proto.Marshal(res) data, _ := proto.Marshal(res)
G_getGameLogic().PackResInfo(agent, "ResUnBindFacebook", data) G_getGameLogic().PackResInfo(agent, "ResUnBindFacebook", data)
@ -304,6 +306,8 @@ func (p *PlayerBaseData) ReqOnlyBindFacebook(player *Player, buf []byte) {
res.ResultCode = 0 res.ResultCode = 0
p.Data.FaceBookId = req.BindAccountId p.Data.FaceBookId = req.BindAccountId
BaseMod := player.PlayMod.getBaseMod()
BaseMod.FackBookId = req.BindAccountId
res.BindAccountId = req.BindAccountId res.BindAccountId = req.BindAccountId
player.TeLog("platform_connect", map[string]interface{}{ player.TeLog("platform_connect", map[string]interface{}{
"platform_type": "facebook", "platform_type": "facebook",