delivery pickup point
This commit is contained in:
@@ -424,19 +424,16 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
|
||||
}
|
||||
}
|
||||
if len(items) > 0 {
|
||||
|
||||
c.Deliveries = append(c.Deliveries, &CartDelivery{
|
||||
Id: c.lastDeliveryId,
|
||||
Provider: msg.Provider,
|
||||
PickupPoint: msg.PickupPoint,
|
||||
Price: 49,
|
||||
Items: items,
|
||||
})
|
||||
c.Processing = true
|
||||
|
||||
c.UpdateTotals()
|
||||
go func() {
|
||||
time.Sleep(5 * time.Second)
|
||||
c.Processing = false
|
||||
}()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user