linhaohong 1 год назад
Родитель
Сommit
975c0fe8b5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Controller/UserController.py

+ 1 - 1
Controller/UserController.py

@@ -3397,7 +3397,7 @@ class SingleLoginView(TemplateView):
             email = email.strip()
             # 阿里云的发送邮箱的调用方法
             return self.get_aliyun_email_code(email, response)
-        elif phone is not None and code_type == 1:
+        elif phone is not None and code_type == "1":
             phone = phone.strip()
             country_code = str(country_code.strip())
             return self.get_change_phone_code(country_code, phone, response, sign_name)