Explorar o código

发送验证码接口合并

linhaohong hai 1 ano
pai
achega
975c0fe8b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)