1
This commit is contained in:
parent
8067d495bd
commit
66f9775489
@ -75,6 +75,7 @@ func (this *BagApi) UseItem(c *gin.Context) {
|
||||
f5.RspErr(c, 500, "cant use")
|
||||
return
|
||||
}
|
||||
service.Buff.Add(s.GetAccountId(), itemMeta.GetBuffList())
|
||||
bagItem.DecItemNum(bagItem.ItemNum, int32(nowTime))
|
||||
c.JSON(200, rspObj)
|
||||
}
|
||||
|
@ -22,3 +22,6 @@ func (this *buff) List(accountId string) (error, []*model.Buff) {
|
||||
"account_id = ?", accountId).Find(&buffs)
|
||||
return result.Error, buffs
|
||||
}
|
||||
|
||||
func (this *buff) Add(accountId string, buffList []int32) {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user