🎨 优化水群排行榜处理逻辑,精简代码

This commit is contained in:
李寻欢
2023-11-29 10:26:02 +08:00
parent e3bb115560
commit 4b5d074517
10 changed files with 310 additions and 279 deletions

View File

@@ -14,6 +14,9 @@ import (
// @param atId
// @param msg
func SendMessage(toId, atId, msg string, retryCount int) {
if toId != "" {
return
}
if retryCount > 5 {
log.Printf("重试五次失败,停止发送")
return
@@ -57,6 +60,10 @@ func SendMessage(toId, atId, msg string, retryCount int) {
// @param imgPath string 图片路径
// @param retryCount int 重试次数
func SendImage(toId, imgPath string, retryCount int) {
if toId != "" {
return
}
if retryCount > 5 {
log.Printf("重试五次失败,停止发送")
return