This commit is contained in:
lzw
2021-11-03 20:46:49 +08:00
parent 492c0203b6
commit a92511b408
4 changed files with 22 additions and 18 deletions

View File

@@ -13,16 +13,16 @@ namespace Yi.Framework.WebCore.Init
{
public static void Seed(CacheClientDB _cacheClientDB)
{
var setDto = Common.Helper.JsonHelper.GetJSON<SettingDto>(new SettingDto()
{
ImageList_key = { "默认图片", "默认图片" },
InitRole_key = "默认角色",
Title_key = "默认标题",
InitIcon_key = "默认头像"
});
if (_cacheClientDB.Get<SettingDto>(RedisConst.key)==null)
{
_cacheClientDB.Add(RedisConst.key, new SettingDto()
{
ImageList_key = { "默认图片", "默认图片" } ,
InitRole_key= "默认角色",
Title_key= "默认标题",
InitIcon_key= "默认头像"
}) ;
_cacheClientDB.Add(RedisConst.key,setDto) ;
}
Console.WriteLine(nameof(RedisInit) + ":Redis初始成功");