Browse Source

发送验证码接口合并

linhaohong 1 year ago
parent
commit
975c0fe8b5
1 changed files with 1 additions and 1 deletions
  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)