点赞优化
This commit is contained in:
parent
9f8e2460ac
commit
158b7a840a
@ -2051,13 +2051,13 @@ func ReqCardGive(player *Player, buf []byte) error {
|
||||
})
|
||||
return fmt.Errorf("card id empty")
|
||||
}
|
||||
err = player.SubCard(CardId)
|
||||
if err != nil {
|
||||
player.SendErrClienRes(&msg.ResCardGive{
|
||||
Code: msg.RES_CODE_FAIL,
|
||||
Msg: err.Error(),
|
||||
})
|
||||
}
|
||||
// err = player.SubCard(CardId)
|
||||
// if err != nil {
|
||||
// player.SendErrClienRes(&msg.ResCardGive{
|
||||
// Code: msg.RES_CODE_FAIL,
|
||||
// Msg: err.Error(),
|
||||
// })
|
||||
// }
|
||||
Id := GoUtil.CreateCardId(int(player.M_DwUin), 0, int(req.CardId))
|
||||
for _, v := range req.Uid {
|
||||
Uid := int(v)
|
||||
|
||||
@ -102,7 +102,10 @@ func (p *Player) SubVarDataAsync(key string) {
|
||||
}
|
||||
|
||||
func (p *Player) AddPlayroomUpvote(PlayerId int) {
|
||||
p.AddVarDataAsync(VAR_PLAYROOM_UPVOTE)
|
||||
newP := &Player{
|
||||
M_DwUin: int64(PlayerId),
|
||||
}
|
||||
newP.AddVarDataAsync(VAR_PLAYROOM_UPVOTE)
|
||||
}
|
||||
|
||||
func (p *Player) AddPlayroomChip(PlayerId int) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user