wangfei hace 6 años
padre
commit
6bfeaf9d45
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      service/goods/orders.go

+ 2
- 1
service/goods/orders.go Ver fichero

@@ -270,7 +270,8 @@ func (s *GoodsServ) ConfirmOrder(ordersID, customercouponid, remark string) erro
270 270
 	if err := s.dao.UpdateOrders(&orders, []string{
271 271
 		"status", "is_pay", "coupon_amount", "actual_amount",
272 272
 	}); err != nil {
273
-		return nil
273
+		utils.LogError("修改订单状态失败:", err.Error())
274
+		return err
274 275
 	}
275 276
 
276 277
 	newOrder, err := s.GetNewGoods(info.OrdersId)