wangfei 6 年 前
コミット
6bfeaf9d45
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2
    1
      service/goods/orders.go

+ 2
- 1
service/goods/orders.go ファイルの表示

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