aa
This commit is contained in:
@@ -394,6 +394,9 @@ func DeleteMessageGroup(ctx *jxcontext.Context, groupID int, userID string, flag
|
||||
}
|
||||
//解散群
|
||||
if flag {
|
||||
if messageGroup.UserID != ctx.GetUserID() {
|
||||
return errCode, fmt.Errorf("只有群主才能解散群!")
|
||||
}
|
||||
messageGroup.DeletedAt = time.Now()
|
||||
messageGroup.LastOperator = ctx.GetUserName()
|
||||
dao.UpdateEntity(db, messageGroup, "DeletedAt", "LastOperator")
|
||||
|
||||
Reference in New Issue
Block a user