Browse Source

中奖库存

k.zhang 1 week ago
parent
commit
f803f54b41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/shanghu/merchant.active.draw.product.go

+ 1 - 1
apis/shanghu/merchant.active.draw.product.go

@@ -20,7 +20,7 @@ func DrawProductCreate(c *gin.Context) {
 		return
 	}
 
-	if inData.DrawProductName == "" || inData.DrawUrl == "" || inData.TotalStock <= 0 {
+	if inData.DrawProductName == "" || inData.DrawUrl == "" || inData.TotalStock < 0 {
 		app.Error(c, 500, errors.New("必填参数缺失"), "必填参数缺失")
 		return
 	}