Compare commits

...

2 Commits

Author SHA1 Message Date
youngq df9fbe55c4 1 2024-12-13 16:04:40 +08:00
youngq 03fba8c5e9 检验房间是否存在 ,区分匿名用户检验方式
登录token新增匿名字段
新增修改在会昵称
2024-12-13 16:04:14 +08:00
4 changed files with 5 additions and 3 deletions

View File

@ -111,7 +111,7 @@ namespace WGShare.API.Controllers.Frontend
var room = await _sqlSugar.Queryable<Room>().FirstAsync(x => x.RoomNum == inputDTO.RoomNum);
if (room == null)
if (room != null)
{
throw Oops.Oh("无效会议号,请重新输入");
}

View File

@ -52,6 +52,6 @@ namespace WGShare.Domain.DTOs.Room
/// <summary>
/// 是否允许匿名
/// </summary>
public bool AllowAnonymous { get; set; }
public bool AllowAnonymous { get; set; } = true;
}
}

View File

@ -34,5 +34,7 @@ namespace WGShare.Domain.DTOs.Room
/// 科目
///</summary>
public SubjectType Subject { get; set; }
public bool AllowAnonymous { get; set; }
}
}

View File

@ -67,6 +67,6 @@ namespace WGShare.Domain.Entities
/// 是否允许匿名
///</summary>
[SugarColumn(ColumnName = "allow_anonymous")]
public bool AllowAnonymous { get; set; }
public bool AllowAnonymous { get; set; } = true;
}
}