|
|
@ -63,7 +63,6 @@ func task(start, end int64) error { |
|
|
|
ids []int64 |
|
|
|
ids []int64 |
|
|
|
) |
|
|
|
) |
|
|
|
for _, val := range result { |
|
|
|
for _, val := range result { |
|
|
|
|
|
|
|
|
|
|
|
if val.Score > 0 { |
|
|
|
if val.Score > 0 { |
|
|
|
id, _ := strconv.Atoi(val.Member.(string)) |
|
|
|
id, _ := strconv.Atoi(val.Member.(string)) |
|
|
|
if id != 0 { |
|
|
|
if id != 0 { |
|
|
@ -101,9 +100,9 @@ func task(start, end int64) error { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func wechatHook(times int64, err error) { |
|
|
|
func wechatHook(times int64, err error) { |
|
|
|
envi := "测试" |
|
|
|
envi := "测试11" |
|
|
|
if k8sclient.Environment() == k8sclient.MasterNamespace { |
|
|
|
if k8sclient.Environment() == k8sclient.MasterNamespace { |
|
|
|
envi = "正式" |
|
|
|
envi = "正式11" |
|
|
|
} |
|
|
|
} |
|
|
|
hook := wechat.NewMarkdown("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=00dd9216-1f50-42be-8fe1-e66640d7bb27"). |
|
|
|
hook := wechat.NewMarkdown("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=00dd9216-1f50-42be-8fe1-e66640d7bb27"). |
|
|
|
Title(1, "直播间热度清理").Br(). |
|
|
|
Title(1, "直播间热度清理").Br(). |
|
|
|