更新组件到最新版
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||
<PackageReference Include="NewLife.Core" Version="8.4.2019.1212" />
|
||||
<PackageReference Include="NewLife.Core" Version="8.7.2020.403" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
<PackageReference Include="PinYinConverterCore" Version="1.0.2" />
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
|
||||
|
||||
@@ -22,11 +22,11 @@ namespace COMCMS.Common
|
||||
/// <summary>
|
||||
/// 程序绝对目录
|
||||
/// </summary>
|
||||
private static string _ContentRootPath = DI.ServiceProvider.GetService<IWebHostEnvironment>().ContentRootPath;
|
||||
private static string _ContentRootPath = Environment.CurrentDirectory;
|
||||
/// <summary>
|
||||
/// 静态文件
|
||||
/// </summary>
|
||||
private static string _WebRootPath = DI.ServiceProvider.GetService<IWebHostEnvironment>().WebRootPath;
|
||||
private static string _WebRootPath = _ContentRootPath + DirectorySeparatorChar + "wwwroot" + DirectorySeparatorChar;
|
||||
|
||||
#region 方式
|
||||
public enum CutMode
|
||||
|
||||
@@ -346,6 +346,16 @@ namespace COMCMS.Common
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否为日期型字符串
|
||||
/// </summary>
|
||||
/// <param name="StrSource">日期字符串(2008-05-08)</param>
|
||||
/// <returns></returns>
|
||||
public static bool IsDate(string StrSource)
|
||||
{
|
||||
return Regex.IsMatch(StrSource, @"^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-9]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$");
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取部分
|
||||
|
||||
Reference in New Issue
Block a user