feat: 添加接口请求的重试

This commit is contained in:
eryajf
2023-02-09 21:24:40 +08:00
parent 25872fafd5
commit e6ee624f58
4 changed files with 36 additions and 41 deletions

View File

@@ -110,7 +110,6 @@ func getRequestText(rmsg public.ReceiveMsg) string {
// 1.去除空格以及换行
requestText := strings.TrimSpace(rmsg.Text.Content)
requestText = strings.Trim(rmsg.Text.Content, "\n")
// 2.替换掉当前用户名称
replaceText := "@" + rmsg.SenderNick
requestText = strings.TrimSpace(strings.ReplaceAll(rmsg.Text.Content, replaceText, ""))