This commit is contained in:
@@ -145,7 +145,7 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) ([]byte, erro
|
||||
Price: msg.Price,
|
||||
Image: msg.Image,
|
||||
})
|
||||
c.TotalPrice += msg.Price
|
||||
c.TotalPrice += msg.Price * int64(msg.Quantity)
|
||||
}
|
||||
case RemoveItemType:
|
||||
//msg, ok := message.Content.(*messages.RemoveItem)
|
||||
|
||||
Reference in New Issue
Block a user