少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-13 94a788f4e94b334ad14bd3db99785cb572fb34c3
System/KnapSack/Logic/ItemModel.cs
@@ -61,7 +61,17 @@
                    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;
                    }
                }