Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
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-group
Commits
d8f05959
Commit
d8f05959
authored
Jun 21, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature/cp-entry-effect
parent
4ae03e94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
20 deletions
+8
-20
group_op.go
domain/service/group_s/group_op.go
+4
-10
group_info.go
route/group_r/group_info.go
+4
-10
No files found.
domain/service/group_s/group_op.go
View file @
d8f05959
...
...
@@ -253,16 +253,10 @@ func (s *GroupService) GroupIn(userId uint64, externalId string, groupUuid strin
var
cpLevel
int
var
cpUserAvatar
string
var
cpEntryEffect
bool
if
cp
,
_
:=
rpc
.
GetUserCp
(
model
,
userId
);
cp
!=
nil
{
cpLevel
=
cp
.
CpLevel
.
Level
if
cp
.
CpUserInfo
.
Avatar
!=
nil
{
cpUserAvatar
=
*
cp
.
CpUserInfo
.
Avatar
}
for
_
,
v
:=
range
cp
.
MyPrivilegeList
{
if
v
.
Type
==
5
{
cpEntryEffect
=
true
}
}
if
cp
,
_
:=
rpc
.
GetUserCpEntryEffect
(
model
,
userId
);
cp
!=
nil
{
cpLevel
=
cp
.
CpLevel
cpUserAvatar
=
cp
.
CpUserAvatar
cpEntryEffect
=
cp
.
CpEntryEffect
}
r
:=
UserParam
{
Nick
:
user
.
Nick
,
...
...
route/group_r/group_info.go
View file @
d8f05959
...
...
@@ -612,16 +612,10 @@ func GetRoomInfo(c *gin.Context) (*mycontext.MyContext, error) {
var
entryEffectType
int
// 进场特效类型 1: CP 2:神秘人 3:贵族 4:vip ,顺序从小到大
var
cpEntryEffect
bool
if
cp
,
_
:=
rpc
.
GetUserCp
(
model
,
userId
);
cp
!=
nil
{
for
_
,
v
:=
range
cp
.
MyPrivilegeList
{
if
v
.
Type
==
5
{
cpEntryEffect
=
true
}
}
result
.
CpLevel
=
cp
.
CpLevel
.
Level
if
cp
.
CpUserInfo
!=
nil
&&
cp
.
CpUserInfo
.
Avatar
!=
nil
{
result
.
CpUserAvatar
=
*
cp
.
CpUserInfo
.
Avatar
}
if
cp
,
_
:=
rpc
.
GetUserCpEntryEffect
(
model
,
userId
);
cp
!=
nil
{
cpEntryEffect
=
cp
.
CpEntryEffect
result
.
CpLevel
=
cp
.
CpLevel
result
.
CpUserAvatar
=
cp
.
CpUserAvatar
}
if
user
,
_
:=
user_cv
.
GetUserDetail
(
model
,
userId
,
userId
);
user
!=
nil
{
if
user
.
IsVip
{
...
...
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