Ver código fonte

调整

master
杨雷 4 semanas atrás
pai
commit
8f498c886e
1 arquivos alterados com 1 adições e 3 exclusões
  1. +1
    -3
      TelpoPush.Ability.Worker/Common/TimeHelper.cs

+ 1
- 3
TelpoPush.Ability.Worker/Common/TimeHelper.cs Ver arquivo

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


Carregando…
Cancelar
Salvar