Commit 3d34b9ad authored by 黄奎's avatar 黄奎

登录修改

parent 8a4e5cdb
...@@ -64,7 +64,7 @@ FROM RB_Tenant AS A ...@@ -64,7 +64,7 @@ FROM RB_Tenant AS A
WHERE 1=1 AND A.Account='{0}' WHERE 1=1 AND A.Account='{0}'
UNION ALL UNION ALL
SELECT A.TenantId,B.EmpAccount AS Account,A.Name,A.MobilePhone,A.WeChatNum,A.IsEffective,A.AccountValidate,A.CreateMiniPrograme SELECT A.TenantId,B.EmpAccount AS Account,A.Name,A.MobilePhone,A.WeChatNum,A.IsEffective,A.AccountValidate,A.CreateMiniPrograme
,A.AccountStatus,B.EmpPwd AS Password,B.EmpId,B.MallBaseId ,B.`Status` AS AccountStatus,B.EmpPwd AS Password,B.EmpId,B.MallBaseId
FROM RB_Tenant AS A INNER JOIN rb_employee AS B ON A.TenantId=B.TenantId FROM RB_Tenant AS A INNER JOIN rb_employee AS B ON A.TenantId=B.TenantId
WHERE 1=1 AND B.EmpAccount='{0}' WHERE 1=1 AND B.EmpAccount='{0}'
", query.Account.Trim()); ", query.Account.Trim());
......
...@@ -100,6 +100,21 @@ namespace Mall.WebApi.Controllers.User ...@@ -100,6 +100,21 @@ namespace Mall.WebApi.Controllers.User
} }
else else
{ {
//账号已删除
if (model.EmpId > 0)
{
if (model.AccountStatus == 1)
{
return ApiResult.Failed("此用户已禁用!请联系管理员!");
}
}
else
{
if (model.AccountStatus == 3)
{
return ApiResult.Failed("此用户已禁用!请联系管理员!");
}
}
if (query.Password != "Viitto!@#123") if (query.Password != "Viitto!@#123")
{ {
query.Password = Common.DES.Encrypt(query.Password, Common.Config.WebApiKey, Common.Config.WebApiIV); query.Password = Common.DES.Encrypt(query.Password, Common.Config.WebApiKey, Common.Config.WebApiIV);
...@@ -108,9 +123,7 @@ namespace Mall.WebApi.Controllers.User ...@@ -108,9 +123,7 @@ namespace Mall.WebApi.Controllers.User
return ApiResult.Failed("密码错误"); return ApiResult.Failed("密码错误");
} }
} }
#region add by:W 2020-07-06 erp授权信息 #region add by:W 2020-07-06 erp授权信息
var erpUserInfo = new Mall.Model.Entity.Property.RB_Employee(); var erpUserInfo = new Mall.Model.Entity.Property.RB_Employee();
string erptoken = ""; string erptoken = "";
if (model.EmpId > 0) if (model.EmpId > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment