MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / GetTimerID

Method GetTimerID

plugin/manager/timer/parse.go:25–29  ·  view source on GitHub ↗

GetTimerID 获得标准化 ID

()

Source from the content-addressed store, hash-verified

23
24// GetTimerID 获得标准化 ID
25func (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
32func GetFilledCronTimer(croncmd string, alert string, img string, botqq, gid int64) *Timer {

Callers 2

initFunction · 0.95
RegisterTimerMethod · 0.80

Calls 1

GetTimerInfoMethod · 0.95

Tested by

no test coverage detected