【猫草大作战】-接口优化,取消数据刷新
This commit is contained in:
parent
7a4586b1ef
commit
4245b7e1d1
@ -5379,7 +5379,7 @@ func ReqCatnipInvite(player *Player, buf []byte) error {
|
||||
},
|
||||
SendT: GoUtil.Now(),
|
||||
})
|
||||
player.CatnipBackData()
|
||||
//player.CatnipBackData()
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResCatnipInvite{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
@ -5432,7 +5432,7 @@ func ReqCatnipAgree(player *Player, buf []byte) error {
|
||||
},
|
||||
SendT: GoUtil.Now(),
|
||||
})
|
||||
player.CatnipBackData()
|
||||
//player.CatnipBackData()
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResCatnipAgree{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
@ -5468,7 +5468,7 @@ func ReqCatnipMultiply(player *Player, buf []byte) error {
|
||||
player.TeLog("catnip_multiply", map[string]interface{}{
|
||||
"Mul": int(req.Multiply),
|
||||
})
|
||||
player.CatnipBackData()
|
||||
//player.CatnipBackData()
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResCatnipMultiply{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
@ -5525,7 +5525,7 @@ func ReqCatnipPlay(player *Player, buf []byte) error {
|
||||
if Growth > 0 {
|
||||
player.CatnipGrowthMsg(PartnerId, int(req.Id), Growth, FriendItems*CatnipMod.Mul)
|
||||
}
|
||||
player.CatnipBackData()
|
||||
//player.CatnipBackData()
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResCatnipPlay{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
@ -5572,7 +5572,7 @@ func ReqCatnipReward(player *Player, buf []byte) error {
|
||||
"friends_get_num": GameInfo.PartnerAdd,
|
||||
"user_get_num": GameInfo.Progress - GameInfo.PartnerAdd,
|
||||
})
|
||||
player.CatnipBackData()
|
||||
//player.CatnipBackData()
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResCatnipReward{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
@ -5615,7 +5615,7 @@ func ReqCatnipGrandReward(player *Player, buf []byte) error {
|
||||
player.TeLog("cats_garden_final_reward", map[string]interface{}{
|
||||
"get_reward": Items,
|
||||
})
|
||||
player.CatnipBackData()
|
||||
//player.CatnipBackData()
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResCatnipGrandReward{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
@ -5659,7 +5659,7 @@ func ReqCatnipRefuse(player *Player, buf []byte) error {
|
||||
GameId: int(req.Id),
|
||||
},
|
||||
})
|
||||
player.CatnipBackData()
|
||||
//player.CatnipBackData()
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResCatnipRefuse{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user