/// <summary> /// 获取同步间隔时间 /// </summary> private static string GetIntervalTime() { string IntervalTime = ConfigValue("IntervalTime").TypeString(); if (AppCommon.IsNumeric(IntervalTime) == false) { IntervalTime = "20"; } if (IntervalTime.TypeInt() < 20) { IntervalTime = "20"; } if (IntervalTime.TypeInt() > 360) { IntervalTime = "360"; } return(IntervalTime); }
/// <summary> /// 获取下载文件速度限制 /// </summary> private static string GetDownloadSpeed() { string DownloadSpeed = ConfigValue("DownloadSpeed").TypeString(); if (AppCommon.IsNumeric(DownloadSpeed) == false) { DownloadSpeed = "0"; } if (DownloadSpeed.TypeInt() < 0) { DownloadSpeed = "0"; } if (DownloadSpeed.TypeInt() > 1000) { DownloadSpeed = "1000"; } return(DownloadSpeed); }