mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2025-10-05 08:07:03 +08:00
feat: 添加接口请求的重试
This commit is contained in:
1
main.go
1
main.go
@@ -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, ""))
|
||||
|
Reference in New Issue
Block a user