@@ -69,9 +69,7 @@ namespace TelpoPush.Ability.Worker.Common | |||||
public static int GetAge(DateTime birthday,bool isYear=false) { | public static int GetAge(DateTime birthday,bool isYear=false) { | ||||
DateTime today = DateTime.Today; | DateTime today = DateTime.Today; | ||||
if (today < birthday) | |||||
return 0; | |||||
if (today < birthday) return 0; | |||||
// 计算年龄 | // 计算年龄 | ||||
int age = today.Year - birthday.Year; | int age = today.Year - birthday.Year; | ||||
if (!isYear) | if (!isYear) | ||||