Commit ca63da2b by xuzhenhao

修改了好友系统的bug

1 parent 705d75d7
Showing with 2 additions and 0 deletions
...@@ -82,6 +82,8 @@ func (f *FriendRelationship) AddFriend(addType string) (result interface{}, err ...@@ -82,6 +82,8 @@ func (f *FriendRelationship) AddFriend(addType string) (result interface{}, err
break break
case 2: case 2:
log.Println("该玩家已经拒绝过你的请求") log.Println("该玩家已经拒绝过你的请求")
sql = ` delete from ice_friend_relationship where relationship_id = ? `
_, err = db.Engine.Exec(sql, friendrelationship[0].RelationshipId)
break break
case 3: case 3:
err = errors.New("该玩家已经拒绝过你的请求") err = errors.New("该玩家已经拒绝过你的请求")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!