| | |
| | | var createTime = GetUseDataFirstValue((int)ItemUseDataKey.createTime);
|
| | | if (createTime > 0)
|
| | | {
|
| | | var overdueTime = TimeUtility.GetTime((uint)createTime).AddSeconds(GetUseDataFirstValue(48));
|
| | | var seconds = GetUseDataFirstValue(48);
|
| | | var overdueTime = DateTime.Now;
|
| | | if (seconds != 0)
|
| | | {
|
| | | overdueTime = TimeUtility.GetTime((uint)createTime).AddSeconds(seconds);
|
| | | }
|
| | | else
|
| | | {
|
| | | overdueTime = TimeUtility.GetTime((uint)createTime).AddSeconds(config.ExpireTime);
|
| | | }
|
| | |
|
| | | surplusTime = (int)(overdueTime).Subtract(TimeUtility.ServerNow).TotalSeconds;
|
| | | }
|
| | | }
|