1
This commit is contained in:
@@ -248,6 +248,9 @@ func (c *OrderManager) OnOrderStatusChanged(vendorOrgCode string, orderStatus *m
|
||||
}
|
||||
}
|
||||
}
|
||||
// 刷新订单结束时间
|
||||
order.OrderFinishedAt = time.Now()
|
||||
dao.UpdateEntity(db, order, "OrderFinishedAt")
|
||||
} else if orderStatus.Status == model.OrderStatusCanceled {
|
||||
//如果取消订单则要把库存加回去
|
||||
if order, err2 := c.LoadOrder(orderStatus.VendorOrderID, orderStatus.VendorID); err2 == nil {
|
||||
|
||||
Reference in New Issue
Block a user