🐛 fix session bug

This commit is contained in:
landaiqing
2024-11-17 20:02:59 +08:00
parent 34c4690f80
commit 78a162a19a
72 changed files with 1304 additions and 453 deletions

View File

@@ -71,8 +71,8 @@ func ErrorWithMessage(message string) *types.Response {
}
// ErrorWithI18n returns an error response with the given message.
func ErrorWithI18n(ctx context.Context, msgId string, defaultMsg string) *types.Response {
message := i18n.FormatText(ctx, msgId, defaultMsg)
func ErrorWithI18n(ctx context.Context, msgId string) *types.Response {
message := i18n.FormatText(ctx, msgId)
return &types.Response{
Code: 500,
Message: message,