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
08779c31
authored
Jan 14, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改
parent
a77d9f3f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
model/activity.go
service/service_activity.go
model/activity.go
View file @
08779c31
...
...
@@ -42,6 +42,7 @@ type ActivityItem struct {
ActivityId
int
`json:"activity_id"`
Amount
float64
`json:"amount"`
Num
int
`json:"num"`
Total
int
`json:"total"`
ItemName
string
`json:"item_name"`
Pic
string
`json:"pic"`
Remark
string
`json:"remark"`
...
...
service/service_activity.go
View file @
08779c31
...
...
@@ -92,7 +92,7 @@ func (as *ActivityService) GetGiftActivity(checkData model.ActivityCheckData, ac
if
hasActivity
{
for
key
,
item
:=
range
activity
.
ItemList
{
activity
.
ItemList
[
key
]
.
Content
=
"订单满"
+
gconv
.
String
(
item
.
Amount
)
+
"元赠"
+
gconv
.
String
(
item
.
ItemName
)
+
"X"
+
gconv
.
String
(
item
.
Num
)
gconv
.
String
(
item
.
ItemName
)
+
"X"
+
gconv
.
String
(
item
.
Num
)
+
""
+
item
.
Remark
}
giftActivity
.
ActivityName
=
activity
.
ActivityName
giftActivity
.
ActivityId
=
activity
.
ActivityId
...
...
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