- ommit nowrow error.

This commit is contained in:
gazebo
2018-08-03 09:55:45 +08:00
parent 91e4638b70
commit 1e4bbc3dd6

View File

@@ -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