diff --git a/app/account_service.py b/app/account_service.py index 2d44ec2..2307686 100644 --- a/app/account_service.py +++ b/app/account_service.py @@ -23,7 +23,7 @@ def signup(): #! 添加如下代码为了过滤注册时的非法字符 warn = WarningMessage(username) - if warn != 'OK': + if str(warn) != 'OK': return str(warn) available = check_username_availability(username)