Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-common
Commits
e3398126
Commit
e3398126
authored
Sep 01, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update noble.go
parent
090a6c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
noble.go
txop/noble_tx/noble.go
+6
-6
No files found.
txop/noble_tx/noble.go
View file @
e3398126
...
...
@@ -44,7 +44,11 @@ func SendNoble(model *domain.Model, receiverUserId mysql.ID, level uint16, days
n
=
noble_m
.
UserNoble
{
UserId
:
receiverUserId
,
Level
:
level
,
EndTime
:
endTime
}
err
=
n
.
Create
(
model
.
DB
())
if
err
!=
nil
{
return
err
if
af2
,
err
:=
n
.
ExtenedEndTime
(
model
.
DB
(),
int
(
days
));
err
!=
nil
{
return
err
}
else
if
af2
<=
0
{
return
fmt
.
Errorf
(
"bizerr.TransactionFailed create rows 0"
)
}
}
nbl
:=
noble_m
.
UserNobleLog
{
...
...
@@ -57,11 +61,7 @@ func SendNoble(model *domain.Model, receiverUserId mysql.ID, level uint16, days
}
err
=
nbl
.
Create
(
model
.
DB
())
if
err
!=
nil
{
if
af2
,
err
:=
n
.
ExtenedEndTime
(
model
.
DB
(),
int
(
days
));
err
!=
nil
{
return
err
}
else
if
af2
<=
0
{
return
fmt
.
Errorf
(
"bizerr.TransactionFailed create rows 0"
)
}
return
err
}
}
else
{
// 延长贵族
...
...
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