|
@@ -131,6 +131,7 @@ namespace MySystem.Areas.Api.Controllers.v1.Main1
|
|
|
JsonData data = JsonMapper.ToObject(value);
|
|
JsonData data = JsonMapper.ToObject(value);
|
|
|
string MerchantId = data["MerchantId"].ToString(); //商户Id
|
|
string MerchantId = data["MerchantId"].ToString(); //商户Id
|
|
|
string Mobile = data["Mobile"].ToString(); //新手机号
|
|
string Mobile = data["Mobile"].ToString(); //新手机号
|
|
|
|
|
+ string MobileCode = data["MobileCode"].ToString(); //短信验证码
|
|
|
Dictionary<string, object> Obj = new Dictionary<string, object>();
|
|
Dictionary<string, object> Obj = new Dictionary<string, object>();
|
|
|
if (Mobile.Length != 11 || !function.IsInt(Mobile) || Mobile.Substring(0, 1) != "1")
|
|
if (Mobile.Length != 11 || !function.IsInt(Mobile) || Mobile.Substring(0, 1) != "1")
|
|
|
{
|
|
{
|
|
@@ -141,7 +142,7 @@ namespace MySystem.Areas.Api.Controllers.v1.Main1
|
|
|
{
|
|
{
|
|
|
return new AppResultJson() { Status = "-1", Info = "短信验证码不正确" };
|
|
return new AppResultJson() { Status = "-1", Info = "短信验证码不正确" };
|
|
|
}
|
|
}
|
|
|
- if (mobilecheck.CheckCode != Mobile)
|
|
|
|
|
|
|
+ if (mobilecheck.CheckCode != MobileCode)
|
|
|
{
|
|
{
|
|
|
return new AppResultJson() { Status = "-1", Info = "短信验证码不正确" };
|
|
return new AppResultJson() { Status = "-1", Info = "短信验证码不正确" };
|
|
|
}
|
|
}
|