Browse Source

wip:提交

wkyuer 2 months ago
parent
commit
c9565eba03
1 changed files with 0 additions and 4 deletions
  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
 		}
 		//参数注入