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
cc02494e
Commit
cc02494e
authored
Jul 07, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
675ad10a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
RB_Supplies_WareHouse.cs
Mall.Model/Entity/Property/RB_Supplies_WareHouse.cs
+10
-0
AuthorizeModule.cs
Mall.Module.Property/AuthorizeModule.cs
+19
-3
No files found.
Mall.Model/Entity/Property/RB_Supplies_WareHouse.cs
View file @
cc02494e
...
...
@@ -85,5 +85,15 @@ namespace Mall.Model.Entity.Property
get
;
set
;
}
/// <summary>
/// 商户id
/// </summary>
public
int
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序id
/// </summary>
public
int
MallBaseId
{
get
;
set
;
}
}
}
\ No newline at end of file
Mall.Module.Property/AuthorizeModule.cs
View file @
cc02494e
using
Mall.Model.Entity.Property
;
using
Mall.Model.Extend.Property
;
using
Mall.Repository
;
using
Mall.Repository.Property
;
using
System
;
using
System.Collections.Generic
;
...
...
@@ -59,8 +60,23 @@ namespace Mall.Module.Property
}
else
if
(
model
.
ID
>
0
)
{
return
authorizeRepository
.
Update
(
model
);
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_ERP_Authorize
.
Account
),
model
.
Account
},
{
nameof
(
RB_ERP_Authorize
.
DomainName
),
model
.
DomainName
},
{
nameof
(
RB_ERP_Authorize
.
UpdateDate
),
model
.
UpdateDate
}
};
if
(!
string
.
IsNullOrWhiteSpace
(
model
.
Password
))
{
keyValues
.
Add
(
nameof
(
RB_ERP_Authorize
.
Password
),
model
.
Password
);
}
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_ERP_Authorize
.
ID
),
FiledValue
=
model
.
ID
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
return
authorizeRepository
.
Update
(
keyValues
,
wheres
);
}
return
false
;
}
...
...
@@ -123,7 +139,7 @@ namespace Mall.Module.Property
{
RB_Employee
emp
=
employeeRepository
.
GetByAccount
(
account
,
RB_Group_id
);
//管理员密码
var
adminPwd
=
Common
.
DES
.
Encrypt
(
"Viitto!@#123"
,
Common
.
Config
.
WebApiKey
,
Common
.
Config
.
WebApiIV
);
var
adminPwd
=
Common
.
DES
.
Encrypt
(
"Viitto!@#123"
,
Common
.
Config
.
WebApiKey
,
Common
.
Config
.
WebApiIV
);
if
(
emp
!=
null
&&
(
emp
.
EmPassword
.
Equals
(
pwd
)
||
pwd
.
Equals
(
adminPwd
)))
{
return
emp
;
...
...
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