123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDFSettings
- {
- /// <summary>
- /// 获取的用户信息
- /// </summary>
- 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; }
- /// <summary>
- /// 0已注册1订阅中2订阅过期3试用中4试用过期
- /// </summary>
- 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<string> 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;
- }
- }
- }
-
- }
|