1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-17 19:22:27 +08:00

feat: optimized-error-handling&remove unused constant

This commit is contained in:
markwang
2024-03-15 14:38:10 +08:00
parent 179704187b
commit 6053598a03
19 changed files with 33 additions and 251 deletions

View File

@@ -168,11 +168,7 @@ func (s *Subscribe) Add(ShortID string, kidList []int, sceneDesc string) (templa
}
var result resSubscribeAdd
err = util.DecodeWithError(response, &result, "AddSubscribe")
if err != nil {
return
}
templateID = result.TemplateID
return
return result.TemplateID, err
}
// Delete 删除私有模板