修改问题

This commit is contained in:
zpc 2024-07-15 15:02:38 +08:00
parent 6bbe8cd268
commit 17e27c0cbc

View File

@ -74,7 +74,7 @@ namespace HuanMeng.MiaoYu.Code.Chat
/// <returns></returns> /// <returns></returns>
public async Task<bool> DelChat(int characterId) public async Task<bool> DelChat(int characterId)
{ {
var tempList = await Dao.daoDbMiaoYu.context.T_User_Char.Where(t => t.UserId == _UserId && t.CharacterId == characterId && t.IsDelete == false).FirstOrDefaultAsync(); var tempList = await Dao.daoDbMiaoYu.context.T_User_Chat.Where(t => t.UserId == _UserId && t.CharacterId == characterId && t.IsDelete == false).FirstOrDefaultAsync();
if (tempList != null) if (tempList != null)
{ {
tempList.IsDelete = true; tempList.IsDelete = true;