fix(api): restful to restx migration issue (#24416)

This commit is contained in:
Matri Qi
2025-08-24 20:58:42 +08:00
committed by GitHub
parent 5ff3947312
commit f31ddc4b1c
3 changed files with 3 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ from libs.helper import TimestampField
class HiddenAPIKey(fields.Raw):
def output(self, key, obj):
def output(self, key, obj, **kwargs):
api_key = obj.api_key
# If the length of the api_key is less than 8 characters, show the first and last characters
if len(api_key) <= 8: