🎨 优化水群排行榜处理逻辑,精简代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user