|
@@ -811,17 +811,24 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
}
|
|
|
RedisDbconn.Instance.Clear("MobileCodeCheck:" + Mobile);
|
|
|
Dictionary<string, object> Obj = new Dictionary<string, object>();
|
|
|
- MerchantForMobile find = new MerchantForMobileService().Query(Mobile);
|
|
|
- if (find == null)
|
|
|
+ // MerchantForMobile find = new MerchantForMobileService().Query(Mobile);
|
|
|
+ // if (find == null)
|
|
|
+ // {
|
|
|
+ // return new AppResultJson() { Status = "-1", Info = "手机号不正确" };
|
|
|
+ // }
|
|
|
+ // MerchantInfo query = maindb.MerchantInfo.FirstOrDefault(m => m.Id == find.MerchantId);
|
|
|
+ // if (query != null)
|
|
|
+ // {
|
|
|
+ // query.LoginPwd = function.MD532(LoginPwd); //登录密码
|
|
|
+ // maindb.SaveChanges();
|
|
|
+ // }
|
|
|
+ MerchantLoginInfo query = maindb.MerchantLoginInfo.FirstOrDefault(m => m.LoginMobile == Mobile);
|
|
|
+ if (query == null)
|
|
|
{
|
|
|
return new AppResultJson() { Status = "-1", Info = "手机号不正确" };
|
|
|
}
|
|
|
- MerchantInfo query = maindb.MerchantInfo.FirstOrDefault(m => m.Id == find.MerchantId);
|
|
|
- if (query != null)
|
|
|
- {
|
|
|
- query.LoginPwd = function.MD532(LoginPwd); //登录密码
|
|
|
- maindb.SaveChanges();
|
|
|
- }
|
|
|
+ query.LoginPwd = function.MD532(LoginPwd); //登录密码
|
|
|
+ maindb.SaveChanges();
|
|
|
return new AppResultJson() { Status = "1", Info = "", Data = Obj };
|
|
|
}
|
|
|
#endregion
|