This commit is contained in:
2026-07-06 12:35:59 +08:00
parent 59becf9e16
commit e8664ca2d7
3 changed files with 51 additions and 3 deletions

View File

@@ -308,7 +308,7 @@ func (s *ShumaiService) CallAPIForm(ctx context.Context, apiPath string, reqForm
shumaiErr := NewShumaiErrorFromCode(codeStr)
if !shumaiErr.IsSuccess() {
if shumaiErr.Message == "未知错误" && msg != "" {
if msg != "" {
shumaiErr = NewShumaiError(codeStr, msg)
}
if s.logger != nil {