From 40fedc07ac3a0cc52ae17f6a7172c93a19eef9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Tue, 8 Feb 2022 10:14:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20user=20=E7=99=BB=E5=BD=95b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/user_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/user_impl.py b/user/user_impl.py index 8c450dc..8bd6705 100644 --- a/user/user_impl.py +++ b/user/user_impl.py @@ -100,7 +100,7 @@ def login_impl(email, pwd, vcode): user_info = FIND_DATA('用户', '用户信息', {"email": email}) def check_email(): - if user_info is []: + if not user_info: return "不存在该邮箱" if not check_mail_fmt(email): return "邮箱格式错误"