Commit 077d29d0 by mushishixian

bug

parent bd0935ed
Showing with 5 additions and 4 deletions
......@@ -53,11 +53,11 @@ func (as *ActivityService) GetGiftActivity(checkData model.ActivityCheckData, ac
nowTimestamp := int(time.Now().Unix())
for _, activity := range activities {
if activity.Status != 1 {
return
continue
}
//判断时间是否过期
if activity.StartTime > nowTimestamp || activity.EndTime < nowTimestamp {
return
continue
}
//如果是整个供应商搞活动,则直接返回系数
......@@ -109,6 +109,7 @@ func (as *ActivityService) GetGiftActivity(checkData model.ActivityCheckData, ac
},
}
}
break
}
return
......@@ -119,11 +120,11 @@ func (as *ActivityService) GetPriceActivity(checkData model.ActivityCheckData, a
nowTimestamp := int(time.Now().Unix())
for _, activity := range activities {
if activity.Status != 1 {
return
continue
}
//判断时间是否过期
if activity.StartTime > nowTimestamp || activity.EndTime < nowTimestamp {
return
continue
}
//如果是整个供应商搞活动,则直接返回系数
if activity.EntireSupplierActivity {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment