Browse Source

调整

master
杨雷 4 weeks ago
parent
commit
8f498c886e
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      TelpoPush.Ability.Worker/Common/TimeHelper.cs

+ 1
- 3
TelpoPush.Ability.Worker/Common/TimeHelper.cs View File

@@ -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)


Loading…
Cancel
Save