chore: refactor lint code

This commit is contained in:
duorameng
2026-05-12 18:42:18 +08:00
parent d187b1e1f3
commit d6b3ad6ae9
6 changed files with 19 additions and 17 deletions
+2 -4
View File
@@ -34,10 +34,8 @@ func sendAliyunSMS(client *dysmsapi.Client, phoneNumber, signName, templateCode,
templateParam := map[string]interface{}{
"content": content,
}
if extra != nil {
for k, v := range extra {
templateParam[k] = v
}
for k, v := range extra {
templateParam[k] = v
}
templateParamJSON, _ := json.Marshal(templateParam)