修改报错

This commit is contained in:
bibabo 2024-07-15 14:57:51 +08:00
parent bdfe735f3e
commit ac8972b20b
4 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,7 @@
using HuanMeng.DotNetCore.Base;
using HuanMeng.MiaoYu.Code.Cache;
using HuanMeng.MiaoYu.Model.DbSqlServer.Db_MiaoYu;
using HuanMeng.MiaoYu.Model.Dto.Chat;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;

View File

@ -88,11 +88,11 @@ namespace HuanMeng.MiaoYu.Model.Dto.Chat
/// <summary>
/// 人物角色标签
/// </summary>
public class LabelDto
{
public int LabelId { get; set; }
public string LabelName { get; set; }
}
//public class LabelDto
//{
// public int LabelId { get; set; }
// public string LabelName { get; set; }
//}
/// <summary>
/// 聊天列表信息

View File

@ -1,4 +1,5 @@
using HuanMeng.MiaoYu.Model.Dto.Home;
//using HuanMeng.MiaoYu.Model.Dto.Home;
using HuanMeng.MiaoYu.Model.Dto.Label;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -57,8 +57,8 @@ namespace HuanMeng.MiaoYu.WebApi.Controllers
var obj = await characterBLL.GetCharacterInfo(requestCharacterInfo);
return obj;
var obj = JsonConvert.DeserializeObject<List<CharacterInfoDto>>("[{\"Icon\":\"\",\"Intimacy\":10,\"CharacterId\":2,\"CharacterName\":\"许荷姻\",\"Gender\":1,\"LookCount\":2,\"BgUrl\":\"\",\"Biography\":\"你那商业联姻得来的妻子,原本的天才女孩,聪明伶俐,生的漂亮、端庄,不知贵圈多少人梦寐以求的存在。\",\"Prologue\":\"坐在轮椅上,眼神平静的看着你,语气也同样平静)你回来了。饭菜在桌上,我刚刚热了。(说到这,又垂下眸子道)我还做了碗醒酒汤,记得喝\",\"Label\":[{\"Id\":1,\"Name\":\"美女\"},{\"Id\":2,\"Name\":\"二次元\"}],\"RemainingChatCount\":1}]");
return new BaseResponse<List<CharacterInfoDto>>(ResonseCode.Success, "", obj);
//var obj = JsonConvert.DeserializeObject<List<CharacterInfoDto>>("[{\"Icon\":\"\",\"Intimacy\":10,\"CharacterId\":2,\"CharacterName\":\"许荷姻\",\"Gender\":1,\"LookCount\":2,\"BgUrl\":\"\",\"Biography\":\"你那商业联姻得来的妻子,原本的天才女孩,聪明伶俐,生的漂亮、端庄,不知贵圈多少人梦寐以求的存在。\",\"Prologue\":\"坐在轮椅上,眼神平静的看着你,语气也同样平静)你回来了。饭菜在桌上,我刚刚热了。(说到这,又垂下眸子道)我还做了碗醒酒汤,记得喝\",\"Label\":[{\"Id\":1,\"Name\":\"美女\"},{\"Id\":2,\"Name\":\"二次元\"}],\"RemainingChatCount\":1}]");
//return new BaseResponse<List<CharacterInfoDto>>(ResonseCode.Success, "", obj);
}
/// <summary>