diff --git a/TelpoPush.Ability.Worker/Common/TimeHelper.cs b/TelpoPush.Ability.Worker/Common/TimeHelper.cs index ab9bbd0..7b49a60 100644 --- a/TelpoPush.Ability.Worker/Common/TimeHelper.cs +++ b/TelpoPush.Ability.Worker/Common/TimeHelper.cs @@ -69,9 +69,7 @@ namespace TelpoPush.Ability.Worker.Common public static int GetAge(DateTime birthday,bool isYear=false) { DateTime today = DateTime.Today; - if (today < birthday) - return 0; - + if (today < birthday) return 0; // 计算年龄 int age = today.Year - birthday.Year; if (!isYear)