support voice message

This commit is contained in:
Shen Junzheng
2025-04-12 02:50:43 +08:00
parent ba3563ad4e
commit 4aeaca118e
15 changed files with 338 additions and 137 deletions

View File

@@ -112,7 +112,7 @@ func RootCause(err error) error {
func Err(c *gin.Context, err error) {
if appErr, ok := err.(*Error); ok {
c.JSON(appErr.Code, appErr)
c.JSON(appErr.Code, appErr.Error())
return
}