This commit is contained in:
lzw
2021-11-03 21:14:58 +08:00
parent eb51c3c755
commit 6f79f870bb
7 changed files with 26 additions and 14 deletions

View File

@@ -13,11 +13,11 @@ namespace Yi.Framework.WebCore.Init
{
public static void Seed(CacheClientDB _cacheClientDB)
{
var setDto = Common.Helper.JsonHelper.GetJSON<SettingDto>(new SettingDto()
var setDto = Common.Helper.JsonHelper.ObjToStr(new SettingDto()
{
ImageList_key = { "默认图片", "默认图片" },
InitRole_key = "默认角色",
Title_key = "默认标题",
ImageList_key =new List<string> { "默认图片", "默认图片" },
InitRole_key = "普通用户",
Title_key = "YiFramework",
InitIcon_key = "默认头像"
});
if (_cacheClientDB.Get<SettingDto>(RedisConst.key)==null)