facebook处理
This commit is contained in:
parent
e351036f51
commit
cf0047bd99
@ -245,6 +245,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)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,6 +262,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,
|
||||||
@ -322,7 +324,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)
|
||||||
@ -412,7 +414,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