|
|
@@ -570,8 +570,8 @@ namespace CallCenterApi.Interface.Controllers
|
|
570
|
570
|
string mobile,string phone, string code, string usercode = "", string pwd = "", string oldPwd = ""
|
|
571
|
571
|
)
|
|
572
|
572
|
{
|
|
573
|
|
- if (string.IsNullOrEmpty(code))
|
|
574
|
|
- return Error("请输入短信验证码");
|
|
|
573
|
+ //if (string.IsNullOrEmpty(code))
|
|
|
574
|
+ // return Error("请输入短信验证码");
|
|
575
|
575
|
if (string.IsNullOrWhiteSpace(pwd))
|
|
576
|
576
|
return Error("请输入密码");
|
|
577
|
577
|
if (string.IsNullOrEmpty(company) || string.IsNullOrEmpty(department) || string.IsNullOrEmpty(post)|| string.IsNullOrEmpty(name))
|
|
|
@@ -584,18 +584,18 @@ namespace CallCenterApi.Interface.Controllers
|
|
584
|
584
|
|
|
585
|
585
|
if (string.IsNullOrEmpty(mobile))
|
|
586
|
586
|
return Error("请输入手机号码");
|
|
587
|
|
- string msgcount = "你的验证码是" + code + ".十分钟有效.";
|
|
588
|
|
- var sms = new BLL.T_SMS_RecvSMS().GetModelList("Content='"+ msgcount+ "' and CallerNum='"+ mobile+ "'order by RecvTime desc");
|
|
589
|
|
- if (sms != null&& sms.Count >0)
|
|
590
|
|
- {
|
|
591
|
|
- var modelSms = sms.First();
|
|
592
|
|
- if ((DateTime.Now - modelSms.RecvTime ).Minutes > 10)
|
|
593
|
|
- {
|
|
594
|
|
- return Error("验证码已失效");
|
|
595
|
|
- }
|
|
596
|
|
- }
|
|
597
|
|
- else
|
|
598
|
|
- return Error("请获取验证码");
|
|
|
587
|
+ //string msgcount = "你的验证码是" + code + ".十分钟有效.";
|
|
|
588
|
+ //var sms = new BLL.T_SMS_RecvSMS().GetModelList("Content='"+ msgcount+ "' and CallerNum='"+ mobile+ "'order by RecvTime desc");
|
|
|
589
|
+ //if (sms != null&& sms.Count >0)
|
|
|
590
|
+ //{
|
|
|
591
|
+ // var modelSms = sms.First();
|
|
|
592
|
+ // if ((DateTime.Now - modelSms.RecvTime ).Minutes > 10)
|
|
|
593
|
+ // {
|
|
|
594
|
+ // return Error("验证码已失效");
|
|
|
595
|
+ // }
|
|
|
596
|
+ //}
|
|
|
597
|
+ //else
|
|
|
598
|
+ // return Error("请获取验证码");
|
|
599
|
599
|
|
|
600
|
600
|
model.F_Password = pwd;
|
|
601
|
601
|
if (!string.IsNullOrEmpty(name))
|