Compare commits

..

No commits in common. "fa1753389e1b944892d37822cbc79a4d9fbae834" and "1e559ac29dda9ec5faa9a8cb677d0708707a5dad" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -166,13 +166,13 @@ func DelFriendOrGroup(c *gin.Context) {
} else if req.Type == 4 { } else if req.Type == 4 {
//群管理员删除群成员 //群管理员删除群成员
if req.GroupID == 0 { if req.GroupID == 0 {
c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed,group_id is null"}) c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed"})
return return
} }
//获取群 //获取群
group := dao.FindGroupByID(req.GroupID) group := dao.FindGroupByID(req.GroupID)
if len(group) == 0 { if len(group) == 0 {
c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed group not found"}) c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed"})
return return
} }
//判断是否是群主 //判断是否是群主