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 {
|
if len(items) > 0 {
|
||||||
|
|
||||||
c.Deliveries = append(c.Deliveries, &CartDelivery{
|
c.Deliveries = append(c.Deliveries, &CartDelivery{
|
||||||
Id: c.lastDeliveryId,
|
Id: c.lastDeliveryId,
|
||||||
Provider: msg.Provider,
|
Provider: msg.Provider,
|
||||||
Price: 49,
|
PickupPoint: msg.PickupPoint,
|
||||||
Items: items,
|
Price: 49,
|
||||||
|
Items: items,
|
||||||
})
|
})
|
||||||
c.Processing = true
|
|
||||||
c.UpdateTotals()
|
c.UpdateTotals()
|
||||||
go func() {
|
|
||||||
time.Sleep(5 * time.Second)
|
|
||||||
c.Processing = false
|
|
||||||
}()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user