Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-user
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
chenweijian
hilo-user
Commits
cd20fdc3
Commit
cd20fdc3
authored
Jun 15, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
todo headwear id !
parent
86b72f1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
level.go
domain/model/cp_m/level.go
+7
-1
No files found.
domain/model/cp_m/level.go
View file @
cd20fdc3
...
@@ -4,6 +4,7 @@ import (
...
@@ -4,6 +4,7 @@ import (
"fmt"
"fmt"
"git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/resource/mysql"
"git.hilo.cn/hilo-common/resource/mysql"
"git.hilo.cn/hilo-common/txop/headwear_tx"
"gorm.io/gorm"
"gorm.io/gorm"
"gorm.io/gorm/clause"
"gorm.io/gorm/clause"
"hilo-user/_const/enum/cp_e"
"hilo-user/_const/enum/cp_e"
...
@@ -273,7 +274,12 @@ func AddCpLevelPoints(model *domain.Model, cpRelation CpRelation, points mysql.N
...
@@ -273,7 +274,12 @@ func AddCpLevelPoints(model *domain.Model, cpRelation CpRelation, points mysql.N
}
}
// 赠送cp头像头饰
// 赠送cp头像头饰
if
oldLevel
<
3
&&
cpLevel
.
Level
>=
3
{
if
oldLevel
<
3
&&
cpLevel
.
Level
>=
3
{
//headwear_tx.SendHeadwear() // todo headwear id !
if
err
:=
headwear_tx
.
SendHeadwear
(
model
,
cpRelation
.
UserId1
,
2272
,
30
);
err
!=
nil
{
return
err
}
if
err
:=
headwear_tx
.
SendHeadwear
(
model
,
cpRelation
.
UserId2
,
2272
,
30
);
err
!=
nil
{
return
err
}
// todo headwear id !
}
}
return
cpLevel
.
Persistence
(
model
)
return
cpLevel
.
Persistence
(
model
)
}
}
...
...
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