1
This commit is contained in:
@@ -154,14 +154,12 @@ func NewWatchOrderInfo(order *model.GoodsOrder) (retVal *WatchOrderInfo) {
|
|||||||
|
|
||||||
func (s *WatchOrderInfo) SetOrder(order *model.GoodsOrder) (retVal *model.GoodsOrder) {
|
func (s *WatchOrderInfo) SetOrder(order *model.GoodsOrder) (retVal *model.GoodsOrder) {
|
||||||
retVal = s.order
|
retVal = s.order
|
||||||
globals.SugarLogger.Debugf("SetOrder order==========%s", utils.Format4Output(order, false))
|
|
||||||
if s.order != order {
|
if s.order != order {
|
||||||
if order != nil {
|
if order != nil {
|
||||||
s.updateOrderStoreFeature(order)
|
s.updateOrderStoreFeature(order)
|
||||||
}
|
}
|
||||||
s.order = order
|
s.order = order
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("SetOrder s.order======%s ,retval====%s", utils.Format4Output(s.order, false), utils.Format4Output(retVal, false))
|
|
||||||
return retVal
|
return retVal
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user