facebook处理
This commit is contained in:
parent
155a9a06c3
commit
f687b4f19a
@ -246,6 +246,7 @@ func (p *PlayerBaseData) ReqBindFacebookAccount(player *Player, buf []byte) {
|
|||||||
BaseMod.FackBookId = req.BindAccountId
|
BaseMod.FackBookId = req.BindAccountId
|
||||||
agent := player.GetAgentByPlayer()
|
agent := player.GetAgentByPlayer()
|
||||||
data, _ := proto.Marshal(res)
|
data, _ := proto.Marshal(res)
|
||||||
|
p.SaveDataFromDB("")
|
||||||
G_getGameLogic().PackResInfo(agent, "ResBindFacebookAccount", data)
|
G_getGameLogic().PackResInfo(agent, "ResBindFacebookAccount", data)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,6 +263,7 @@ func (p *PlayerBaseData) ReqUnBindFacebook(player *Player, buf []byte) {
|
|||||||
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)
|
||||||
|
p.SaveDataFromDB("")
|
||||||
player.TeLog("platform_disconnect", map[string]interface{}{
|
player.TeLog("platform_disconnect", map[string]interface{}{
|
||||||
"platform_type": "facebook",
|
"platform_type": "facebook",
|
||||||
"platform_id": req.BindAccountId,
|
"platform_id": req.BindAccountId,
|
||||||
@ -323,7 +325,7 @@ func (p *PlayerBaseData) ReqOnlyBindFacebook(player *Player, buf []byte) {
|
|||||||
res.BindAccountId = req.BindAccountId
|
res.BindAccountId = req.BindAccountId
|
||||||
|
|
||||||
}
|
}
|
||||||
|
p.SaveDataFromDB("")
|
||||||
agent := player.GetAgentByPlayer()
|
agent := player.GetAgentByPlayer()
|
||||||
data, _ := proto.Marshal(res)
|
data, _ := proto.Marshal(res)
|
||||||
G_getGameLogic().PackResInfo(agent, "ResOnlyBindFacebook", data)
|
G_getGameLogic().PackResInfo(agent, "ResOnlyBindFacebook", data)
|
||||||
@ -413,7 +415,7 @@ func (p *PlayerBaseData) ReqSynGameData(player *Player, buf []byte) {
|
|||||||
res.ResultCode = 0
|
res.ResultCode = 0
|
||||||
|
|
||||||
}
|
}
|
||||||
|
p.SaveDataFromDB("")
|
||||||
agent := player.GetAgentByPlayer()
|
agent := player.GetAgentByPlayer()
|
||||||
data, _ := proto.Marshal(res)
|
data, _ := proto.Marshal(res)
|
||||||
G_getGameLogic().PackResInfo(agent, "ResSynGameData", data)
|
G_getGameLogic().PackResInfo(agent, "ResSynGameData", data)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user