mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-20 00:16:37 +08:00
同步
This commit is contained in:
@@ -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初始成功!");
|
||||
|
||||
Reference in New Issue
Block a user