修改时间

This commit is contained in:
zpc 2024-12-04 14:10:05 +08:00
parent 977b3a8a7e
commit 600125711d
2 changed files with 6 additions and 6 deletions

View File

@ -4,11 +4,11 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
# 设置时区为北京时间 # 设置时区为北京时间
RUN apt-get update && apt-get install -y tzdata && \ #RUN apt-get update && apt-get install -y tzdata && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ # ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \ # echo "Asia/Shanghai" > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata && \ # dpkg-reconfigure -f noninteractive tzdata && \
apt-get clean && rm -rf /var/lib/apt/lists/* # apt-get clean && rm -rf /var/lib/apt/lists/*
USER $APP_UID USER $APP_UID
WORKDIR /app WORKDIR /app

View File

@ -41,7 +41,7 @@ public static class AppConfigBLLExtend
public static AppConfigCache GetAppConfig(this List<AppConfigCache> app_Configs, int cfgType, int cfgId, AppRequestConfig? appRequestInfo) public static AppConfigCache GetAppConfig(this List<AppConfigCache> app_Configs, int cfgType, int cfgId, AppRequestConfig? appRequestInfo)
{ {
var list = GetAppCfgList(app_Configs, cfgType, cfgId, appRequestInfo?.Channel, appRequestInfo?.Platform, appRequestInfo.VersionNum, appRequestInfo?.Continent, appRequestInfo?.CountryName); var list = GetAppCfgList(app_Configs, cfgType, cfgId, appRequestInfo?.Channel, appRequestInfo?.Platform, appRequestInfo.VersionNum, appRequestInfo?.Continent, appRequestInfo?.CountryName);
return list.FirstOrDefault(); return list?.FirstOrDefault();
} }
/// <summary> /// <summary>