From 57ff7c5c74ba6ca1f324b4e25132c3c7854d7d1b Mon Sep 17 00:00:00 2001 From: gazebo Date: Sat, 20 Jul 2019 18:48:08 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E7=BC=BA=E7=9C=81=E8=AE=BE=E7=BD=AELimitUs?= =?UTF-8?q?er=E4=B8=BA1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/act/act.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 8a759c346..b3461334d 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -293,6 +293,9 @@ func setActDefault(act *model.Act) { if act.LimitCount == 0 { act.LimitCount = 1 // 缺省限购一份,如果确定不限,明确给一个很大的值 } + if act.LimitUser == 0 { + act.LimitUser = 1 + } act.Status = model.ActStatusCreated }