fix: auto ban

This commit is contained in:
CaIon committed 2025-07-29 23:08:16 +08:00
1 parent a1caf37f5b
commit efb7c6a15e
2 files changed
+6 -7

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
package service
import (
"encoding/json"
"errors"
"fmt"
"io"
@@ -112,7 +111,7 @@ func ResetStatusCode(newApiErr *types.NewAPIError, statusCodeMappingStr string)
return
}
statusCodeMapping := make(map[string]string)
err := json.Unmarshal([]byte(statusCodeMappingStr), &statusCodeMapping)
err := common.Unmarshal([]byte(statusCodeMappingStr), &statusCodeMapping)
if err != nil {
return
}