using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PDFSettings { /// /// 获取的用户信息 /// public class UserDate { public bool TodayRegister { get; set; } = false; public string TodayRegisterTime { get; set; } = "2023-06-01 08:00:00"; public bool IsLoginoff { get; set; } = false; public string id { get; set; } public string companyId { get; set; } public string appId { get; set; } public string Email { get; set; } = ""; public string fullName { get; set; } //订阅部分 public string subscribeid { get; set; } public string subscribeuserid { get; set; } public string subscribeType { get; set; } public int subscribeplatform { get; set; } /// /// 0已注册1订阅中2订阅过期3试用中4试用过期 /// public int subscribestatus{ get; set; } public string subscribeendDate { get; set; } public int subscribepayType { get; set; } public string subscribed { get; set; } public string digestPassword { get; set; } public string phone { get; set; } public string industry { get; set; } public string lastPopularizeAt { get; set; } public string lastPresentedCouponAt { get; set; } public string mailable { get; set; } public string resetToken { get; set; } public string role { get; set; } public string job { get; set; } public string area { get; set; } public string platformType { get; set; } public string accountType { get; set; } public string accountSource { get; set; } public string createdAt { get; set; } public string updatedAt { get; set; } public string remark { get; set; } public string validFlag { get; set; } public List subscriptionInfoList { get; set; } public string freeDate { get; set; } = "2023-06-01 08:00:00"; public bool isInFreeUseTime { get; set; } = false; public void CheckRegisterStatus() { DateTime currentTime = DateTime.Now; DateTime thresholdTime = DateTime.Parse(TodayRegisterTime).Date.AddDays(1); if (currentTime > thresholdTime) { TodayRegister = false; } else { TodayRegister = true; } } } }