private void TimedEventb(object sender, ElapsedEventArgs e) { int iHour = e.SignalTime.Hour; int iMinute = e.SignalTime.Minute; int iSecond = e.SignalTime.Second; aTimer.Enabled = false; try { if (iHour == 1 && iMinute == 30 && iSecond <= 1) { AccountBLL.UpdateUseState(); } } catch (Exception ex) { LogWrite.Write("自动发布" + ex.Message); } finally { aTimer.Enabled = true; } }