Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
xuzhenhao
/
rlw-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ca63da2b
authored
Dec 27, 2017
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了好友系统的bug
1 parent
705d75d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
friendSystem/models/friend.go
friendSystem/models/friend.go
View file @
ca63da2
...
...
@@ -82,6 +82,8 @@ func (f *FriendRelationship) AddFriend(addType string) (result interface{}, err
break
case
2
:
log
.
Println
(
"该玩家已经拒绝过你的请求"
)
sql
=
` delete from ice_friend_relationship where relationship_id = ? `
_
,
err
=
db
.
Engine
.
Exec
(
sql
,
friendrelationship
[
0
]
.
RelationshipId
)
break
case
3
:
err
=
errors
.
New
(
"该玩家已经拒绝过你的请求"
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment