修改问题
This commit is contained in:
parent
d4ba8bc0d4
commit
2161234501
|
|
@ -52,7 +52,7 @@ public class ChatBLL : MiaoYuBase
|
|||
list.Add(chat);
|
||||
return new BaseResponse<List<ChatMessageDto>>(ResonseCode.Success, "", list);
|
||||
}
|
||||
var userChatSession = await Dao.daoDbMiaoYu.context.T_User_Chat.Where(it => it.CharacterId == characterId && it.UserId == _UserId && !it.IsDelete && it.TotalCount > 0).FirstOrDefaultAsync();
|
||||
var userChatSession = await Dao.daoDbMiaoYu.context.T_User_Chat.Where(it => it.CharacterId == characterId && it.UserId == _UserId && !it.IsDelete).FirstOrDefaultAsync();
|
||||
if (userChatSession == null)
|
||||
{
|
||||
userChatSession = new T_User_Chat()
|
||||
|
|
@ -543,7 +543,7 @@ public class ChatBLL : MiaoYuBase
|
|||
/// <returns></returns>
|
||||
public async Task<BaseResponse<List<ChatHistoryInfo>>> GetChatHistoryList()
|
||||
{
|
||||
var userChatSessions = await Dao.daoDbMiaoYu.context.T_User_Chat.Where(it => it.UserId == _UserId && !it.IsDelete).ToListAsync();
|
||||
var userChatSessions = await Dao.daoDbMiaoYu.context.T_User_Chat.Where(it => it.UserId == _UserId && !it.IsDelete && it.TotalCount > 0).ToListAsync();
|
||||
List<ChatHistoryInfo> chatHistoryInfos = new List<ChatHistoryInfo>();
|
||||
var charactersIds = MiaoYuCache.CharacterList.ToList();
|
||||
var memoryCard = Dao.daoDbMiaoYu.context.T_User_MemoryCard.AsNoTracking().Where(it => it.UserId == _UserId && it.RemainingCount > 0 && it.CharacterId > 0).Select(it => it.CharacterId).ToList();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user