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
078f5b17
Commit
078f5b17
authored
Jun 14, 2023
by
iamhujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cp对象头像
parent
178b1b5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
group.go
cv/group_cv/group.go
+2
-0
group_info.go
route/group_r/group_info.go
+7
-1
No files found.
cv/group_cv/group.go
View file @
078f5b17
...
@@ -178,6 +178,8 @@ type RoomInfo struct {
...
@@ -178,6 +178,8 @@ type RoomInfo struct {
GameConfig
*
game_m
.
GameConfig
`json:"gameConfig"`
GameConfig
*
game_m
.
GameConfig
`json:"gameConfig"`
Owner
*
user_cv
.
CvUserDetail
`json:"owner"`
Owner
*
user_cv
.
CvUserDetail
`json:"owner"`
EntryEffectType
int
`json:"entryEffectType"`
// 进场特效类型 1: CP 2:神秘人 3:贵族 4:vip
EntryEffectType
int
`json:"entryEffectType"`
// 进场特效类型 1: CP 2:神秘人 3:贵族 4:vip
CpUserAvatar
string
`json:"cpUserAvatar"`
// cp对象头像
CpLevel
int
`json:"cpLevel"`
// cp等级
}
}
type
SupportPageDetail
struct
{
type
SupportPageDetail
struct
{
...
...
route/group_r/group_info.go
View file @
078f5b17
...
@@ -610,7 +610,13 @@ func GetRoomInfo(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -610,7 +610,13 @@ func GetRoomInfo(c *gin.Context) (*mycontext.MyContext, error) {
}
}
// 进场特效类型
// 进场特效类型
var
entryEffectType
int
// 进场特效类型 1: CP 2:神秘人 3:贵族 4:vip ,顺序从小到大
var
entryEffectType
int
// 进场特效类型 1: CP 2:神秘人 3:贵族 4:vip ,顺序从小到大
if
result
.
Owner
!=
nil
{
if
result
.
Owner
!=
nil
&&
result
.
Owner
.
Id
!=
nil
{
if
cp
,
_
:=
rpc
.
GetUserCp
(
model
,
*
result
.
Owner
.
Id
);
cp
!=
nil
{
result
.
CpLevel
=
cp
.
CpLevel
.
Level
if
cp
.
CpUserInfo
!=
nil
&&
cp
.
CpUserInfo
.
Avatar
!=
nil
{
result
.
CpUserAvatar
=
*
cp
.
CpUserInfo
.
Avatar
}
}
var
cpEntryEffect
bool
var
cpEntryEffect
bool
if
cp
,
_
:=
rpc
.
GetUserCp
(
model
,
userId
);
cp
!=
nil
{
if
cp
,
_
:=
rpc
.
GetUserCp
(
model
,
userId
);
cp
!=
nil
{
for
_
,
v
:=
range
cp
.
MyPrivilegeList
{
for
_
,
v
:=
range
cp
.
MyPrivilegeList
{
...
...
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