瀏覽代碼

wip:提交

wkyuer 2 月之前
父節點
當前提交
c9565eba03
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      internal/controller/orderHandler.go

+ 0 - 4
internal/controller/orderHandler.go

@@ -63,10 +63,6 @@ var checkOrderProduct = func(ctx context.Context, orderCode string, param model.
 	for _, tParam := range param.ProductArr {
 		orderDetailId := gconv.Int64(tParam["id"])
 		if update {
-			if orderDetailId == 0 {
-				err = fmt.Errorf("商品修改缺少id")
-				return
-			}
 			existsOrderDetailIds[orderDetailId] = false
 		}
 		//参数注入