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
d0121190
Commit
d0121190
authored
Jun 06, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看别人的cp空间
parent
b86a5d09
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
space.go
route/cp_r/space.go
+10
-1
No files found.
route/cp_r/space.go
View file @
d0121190
...
...
@@ -71,11 +71,20 @@ func CpSpace(c *gin.Context) (*mycontext.MyContext, error) {
if
cpUserId
==
userId
{
cpUserId
=
cpRelation
.
UserId1
}
applyToUnbind
=
cp_m
.
GetApplyToUnbind
(
model
,
userId
,
cpUserId
)
cpUserInfo
,
err
=
user_m
.
GetUser
(
model
,
cpUserId
)
if
err
!=
nil
{
return
myContext
,
err
}
// 查看别人的cp空间
if
userId
!=
cpRelation
.
UserId1
&&
userId
!=
cpRelation
.
UserId2
{
userInfo
,
err
=
user_m
.
GetUser
(
model
,
cpRelation
.
UserId1
)
if
err
!=
nil
{
return
myContext
,
err
}
}
else
{
// 自己的空间
applyToUnbind
=
cp_m
.
GetApplyToUnbind
(
model
,
userId
,
cpUserId
)
}
}
if
cpLevel
!=
cp_e
.
CpLevelMax
{
nextPoints
=
cp_e
.
CpLevelPoints
[
cpLevel
+
1
]
...
...
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