Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d298054d
authored
Jul 05, 2024
by
CalciumIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 记录兑换时兑换码的ID (close #286)
parent
2fd011e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
model/redemption.go
+1
-1
No files found.
model/redemption.go
View file @
d298054d
...
...
@@ -78,7 +78,7 @@ func Redeem(key string, userId int) (quota int, err error) {
if
err
!=
nil
{
return
0
,
errors
.
New
(
"兑换失败,"
+
err
.
Error
())
}
RecordLog
(
userId
,
LogTypeTopup
,
fmt
.
Sprintf
(
"通过兑换码充值 %s
"
,
common
.
LogQuota
(
redemption
.
Quota
)
))
RecordLog
(
userId
,
LogTypeTopup
,
fmt
.
Sprintf
(
"通过兑换码充值 %s
,兑换码ID %d"
,
common
.
LogQuota
(
redemption
.
Quota
),
redemption
.
Id
))
return
redemption
.
Quota
,
nil
}
...
...
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