瀏覽代碼

调整

master
杨雷 4 週之前
父節點
當前提交
8f498c886e
共有 1 個檔案被更改,包括 1 行新增3 行删除
  1. +1
    -3
      TelpoPush.Ability.Worker/Common/TimeHelper.cs

+ 1
- 3
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)


Loading…
取消
儲存