add simutil cstNow, other times use this prop

This commit is contained in:
2022-05-18 20:37:41 +08:00
parent 7b0f0a9245
commit 98907ba5af
3 changed files with 35 additions and 8 deletions
+6 -1
View File
@@ -10,6 +10,11 @@ namespace SimApi.Helpers
{
public static class SimApiUtil
{
public static DateTime CstNow
{
get => DateTime.UtcNow.AddHours(8);
}
/// <summary>
/// 检测手机号是否正确
/// </summary>
@@ -60,7 +65,7 @@ namespace SimApi.Helpers
/// <returns></returns>
public static DateTime GetCstNow()
{
return DateTime.UtcNow.AddHours(8);
return CstNow;
}
}
}