- num == 0.

This commit is contained in:
gazebo
2018-08-24 14:25:03 +08:00
parent ec410563af
commit 54063d2f35

View File

@@ -101,7 +101,7 @@ func (c *OrderManager) GetOrderSkuInfo(vendorOrderID string, vendorID int) (skus
`, vendorOrderID, vendorID).QueryRows(&skus)
}
if err != nil {
if err != nil || num == 0 {
num, err = db.Raw(`
SELECT t1.*, t3.img image
FROM order_sku t1