Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
3d34b9ad
Commit
3d34b9ad
authored
Dec 31, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录修改
parent
8a4e5cdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
RB_TenantRepository.cs
Mall.Repository/User/RB_TenantRepository.cs
+1
-1
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+15
-2
No files found.
Mall.Repository/User/RB_TenantRepository.cs
View file @
3d34b9ad
...
...
@@ -64,7 +64,7 @@ FROM RB_Tenant AS A
WHERE 1=1 AND A.Account='{0}'
UNION ALL
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
WHERE 1=1 AND B.EmpAccount='{0}'
"
,
query
.
Account
.
Trim
());
...
...
Mall.WebApi/Controllers/User/TenantController.cs
View file @
3d34b9ad
...
...
@@ -100,6 +100,21 @@ namespace Mall.WebApi.Controllers.User
}
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"
)
{
query
.
Password
=
Common
.
DES
.
Encrypt
(
query
.
Password
,
Common
.
Config
.
WebApiKey
,
Common
.
Config
.
WebApiIV
);
...
...
@@ -108,9 +123,7 @@ namespace Mall.WebApi.Controllers.User
return
ApiResult
.
Failed
(
"密码错误"
);
}
}
#
region
add
by
:
W
2020
-
07
-
06
erp
授权信息
var
erpUserInfo
=
new
Mall
.
Model
.
Entity
.
Property
.
RB_Employee
();
string
erptoken
=
""
;
if
(
model
.
EmpId
>
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment