refactor: 优化短信登录失败提示信息

This commit is contained in:
Argo Windows 2019-10-23 11:42:42 +08:00
parent 091e4f4cbe
commit f16bf84e04
3 changed files with 5 additions and 3 deletions

View File

@ -110,7 +110,7 @@ namespace Microsoft.Extensions.DependencyInjection
}
else
{
new Exception("SMS Send Fail").Log(new NameValueCollection()
new Exception(result.Msg).Log(new NameValueCollection()
{
["UserId"] = Option.Phone,
["url"] = url,
@ -148,6 +148,8 @@ namespace Microsoft.Extensions.DependencyInjection
public int Code { get; set; }
public string Data { get; set; }
public string Msg { get; set; }
}
private class AutoExpireValidateCode

View File

@ -75,7 +75,7 @@
<span class="fa fa-user"></span>
</div>
</div>
<input type="text" id="phone" name="phone" class="form-control digits" data-toggle="tooltip" placeholder="手机号码" minlength="11" maxlength="11" data-required-msg="请输入手机号码" value="" data-valid="true" />
<input type="tel" id="phone" name="phone" class="form-control digits" data-toggle="tooltip" placeholder="手机号码" minlength="11" maxlength="11" data-required-msg="请输入手机号码" value="" data-valid="true" />
</div>
</div>
<div id="loginSMS" class="form-group d-none">

View File

@ -195,7 +195,7 @@
url: apiUrl,
method: 'PUT',
callback: function (result) {
$this.attr('data-original-title', result ? "发送成功" : "发送失败").tooltip('show');
$this.attr('data-original-title', result ? "发送成功" : "短信登录体验活动结束").tooltip('show');
var handler = setTimeout(function () {
clearTimeout(handler);
$this.tooltip('hide').attr('data-original-title', "点击发送验证码");