- ommit nowrow error.
This commit is contained in:
@@ -273,7 +273,11 @@ func (c *OrderController) addOrderStatus(orderStatus *model.OrderStatus, db orm.
|
||||
isDuplicated = true
|
||||
}
|
||||
} else {
|
||||
globals.SugarLogger.Warnf("addOrderStatus orderID:%s read failed with error:%v", order.VendorOrderID, err)
|
||||
if err == orm.ErrNoRows { // todo 消息错序
|
||||
err = nil
|
||||
} else {
|
||||
globals.SugarLogger.Warnf("addOrderStatus orderID:%s read failed with error:%v", order.VendorOrderID, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
return isDuplicated, err
|
||||
|
||||
Reference in New Issue
Block a user