GetTimerID 获得标准化 ID
()
| 23 | |
| 24 | // GetTimerID 获得标准化 ID |
| 25 | func (t *Timer) GetTimerID() uint32 { |
| 26 | key := t.GetTimerInfo() |
| 27 | m := md5.Sum(helper.StringToBytes(key)) |
| 28 | return binary.LittleEndian.Uint32(m[:4]) |
| 29 | } |
| 30 | |
| 31 | // GetFilledCronTimer 获得以cron填充好的ts |
| 32 | func GetFilledCronTimer(croncmd string, alert string, img string, botqq, gid int64) *Timer { |
no test coverage detected