|
@@ -1533,7 +1533,7 @@ class v2forgetPwdCodeView(TemplateView):
|
|
|
if phone is not None:
|
|
|
phone = phone.strip()
|
|
|
# 短信签名
|
|
|
- sign_name = CommonService.confirm_msg_sign_name(sign_name)
|
|
|
+ sign_name = CommonService.confirm_msg_sign_name(sign_name, phone)
|
|
|
if country_code is None:
|
|
|
return self.do_send_phone_code(phone, response, sign_name, number, lang)
|
|
|
else:
|
|
@@ -3075,7 +3075,7 @@ class OauthAuthCodeView(TemplateView):
|
|
|
elif phone is not None:
|
|
|
phone = phone.strip()
|
|
|
# 短信签名
|
|
|
- sign_name = CommonService.confirm_msg_sign_name(sign_name)
|
|
|
+ sign_name = CommonService.confirm_msg_sign_name(sign_name, phone)
|
|
|
if country_code is None:
|
|
|
return self.phoneCode(phone, response, sign_name)
|
|
|
else:
|
|
@@ -3417,7 +3417,7 @@ class SingleLoginView(TemplateView):
|
|
|
phone = phone.strip()
|
|
|
country_code = str(country_code.strip())
|
|
|
# 短信签名
|
|
|
- sign_name = CommonService.confirm_msg_sign_name(sign_name)
|
|
|
+ sign_name = CommonService.confirm_msg_sign_name(sign_name, phone)
|
|
|
return self.get_phone_code(country_code, phone, sign_name, code_type, uid, response)
|
|
|
except Exception as e:
|
|
|
return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
@@ -4345,7 +4345,7 @@ class loginCodeView(View):
|
|
|
login_code = RandomStr(6, True)
|
|
|
aliSms = AliSmsObject()
|
|
|
# 短信签名
|
|
|
- sign_name = CommonService.confirm_msg_sign_name(sign_name)
|
|
|
+ sign_name = CommonService.confirm_msg_sign_name(sign_name, phone)
|
|
|
|
|
|
res = aliSms.send_code_sms(phone=phone, code=login_code, sign_name=sign_name, temp_msg='SMS_151675022')
|
|
|
|