config bug修复
This commit is contained in:
@@ -22,7 +22,7 @@ namespace dy.net.service
|
||||
var config = sqlSugarClient.Queryable<AppConfig>().First();
|
||||
|
||||
var downImgConfig = Appsettings.Get(SystemStaticUtil.DOWN_IMAGE_VIDEO_ENABLE);
|
||||
if (!string.IsNullOrEmpty(downImgConfig))
|
||||
if (config != null && !string.IsNullOrEmpty(downImgConfig))
|
||||
{
|
||||
downImgConfig = downImgConfig.ToLower();
|
||||
config.DownImageVideoFromEnv = downImgConfig == "1";
|
||||
|
||||
Reference in New Issue
Block a user