Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
077d29d0
authored
Jan 20, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
bd0935ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
service/service_activity.go
service/service_activity.go
View file @
077d29d0
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment