Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
huatu_API
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
liudong1993
huatu_API
Commits
c338822a
Commit
c338822a
authored
Aug 21, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改员工密码格式验证
parent
96ac1bcc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
28 deletions
+33
-28
RBUserCache.cs
REBORN.CacheManager/User/RBUserCache.cs
+1
-1
CustomerOrderModule.cs
REBORN.Module.SellModule/CustomerOrderModule.cs
+6
-1
BranchService.cs
REBORN.Services.PlatformService/BranchService.cs
+9
-9
EmployeeService.cs
REBORN.Services.UserService/EmployeeService.cs
+12
-12
LoginService.cs
REBORN.Services.UserService/LoginService.cs
+5
-5
No files found.
REBORN.CacheManager/User/RBUserCache.cs
View file @
c338822a
...
@@ -158,7 +158,7 @@ namespace REBORN.CacheManager.User
...
@@ -158,7 +158,7 @@ namespace REBORN.CacheManager.User
ImAccount
=
model
.
EmLoginMobile
,
ImAccount
=
model
.
EmLoginMobile
,
B2BDomain
=
b2bDomain
,
B2BDomain
=
b2bDomain
,
Domain
=
domain
,
Domain
=
domain
,
IsExactness
=
ValidateHepler
.
IsPwd
(
EmPassword
),
IsExactness
=
true
,
//
ValidateHepler.IsPwd(EmPassword),
SimpleEasy
=
gmodel
.
SimpleEasy
,
SimpleEasy
=
gmodel
.
SimpleEasy
,
};
};
try
try
...
...
REBORN.Module.SellModule/CustomerOrderModule.cs
View file @
c338822a
...
@@ -33,6 +33,10 @@ namespace REBORN.Module.SellModule
...
@@ -33,6 +33,10 @@ namespace REBORN.Module.SellModule
/// </summary>
/// </summary>
public
class
CustomerOrderModule
public
class
CustomerOrderModule
{
{
/// <summary>
/// 其它单项服务合同
/// </summary>
private
readonly
RB_Travel_ContractRepository
travel_ContractRepository
=
new
RB_Travel_ContractRepository
();
/// <summary>
/// <summary>
/// 同业
/// 同业
/// </summary>
/// </summary>
...
@@ -1437,7 +1441,8 @@ namespace REBORN.Module.SellModule
...
@@ -1437,7 +1441,8 @@ namespace REBORN.Module.SellModule
appointOPList
=
appointOPRepository
.
GetList
(
new
RB_Appoint_OP_Extend
{
QOrderIds
=
orderIds
,
ResourceType
=
ResourceTypeEnum
.
Hotel
});
appointOPList
=
appointOPRepository
.
GetList
(
new
RB_Appoint_OP_Extend
{
QOrderIds
=
orderIds
,
ResourceType
=
ResourceTypeEnum
.
Hotel
});
}
}
#
endregion
#
endregion
//其它合同
// var otherContractList = travel_ContractRepository.GetTravelContractListRepository(new RB_Travel_Contract_Extend() { QOrderIds = OrderStr, Status = -1 });
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
#
region
查询订单对应的供应商以及指定
op
#
region
查询订单对应的供应商以及指定
op
...
...
REBORN.Services.PlatformService/BranchService.cs
View file @
c338822a
...
@@ -142,20 +142,20 @@ namespace REBORN.Services.PlatformService
...
@@ -142,20 +142,20 @@ namespace REBORN.Services.PlatformService
}
}
}
}
int
cityId
=
ConvertHelper
.
ToInt
(
demodel
.
City
);
//
int cityId = ConvertHelper.ToInt(demodel.City);
if
(
cityId
<=
0
)
//
if (cityId <= 0)
{
//
{
return
ApiResult
.
Failed
(
"请选择城市!"
);
//
return ApiResult.Failed("请选择城市!");
}
//
}
if
(
branchmodule
.
Exists
(
demodel
.
Id
,
demodel
.
BName
,
demodel
.
RB_Group_Id
.
Value
))
if
(
branchmodule
.
Exists
(
demodel
.
Id
,
demodel
.
BName
,
demodel
.
RB_Group_Id
.
Value
))
{
{
return
ApiResult
.
Failed
(
"公司名称重复!"
);
return
ApiResult
.
Failed
(
"公司名称重复!"
);
}
}
if
(
branchmodule
.
ExistsExt
(
demodel
))
//
if (branchmodule.ExistsExt(demodel))
{
//
{
return
ApiResult
.
Failed
(
"城市重复,请重新选择!"
);
//
return ApiResult.Failed("城市重复,请重新选择!");
}
//
}
//验证总公司唯一 并且 初始层级不能大于集团设置的最大层级
//验证总公司唯一 并且 初始层级不能大于集团设置的最大层级
if
(
demodel
.
BeginTier
<=
0
)
if
(
demodel
.
BeginTier
<=
0
)
...
...
REBORN.Services.UserService/EmployeeService.cs
View file @
c338822a
...
@@ -70,10 +70,10 @@ namespace REBORN.Services.UserService
...
@@ -70,10 +70,10 @@ namespace REBORN.Services.UserService
{
{
return
ApiResult
.
ParamIsNull
(
"请输入密码!"
);
return
ApiResult
.
ParamIsNull
(
"请输入密码!"
);
}
}
if
(!
ValidateHepler
.
IsPwd
(
model
.
EmPassword
))
//
if (!ValidateHepler.IsPwd(model.EmPassword))
{
//
{
return
ApiResult
.
Failed
(
"当前密码不符合规范请重新输入密码"
);
//
return ApiResult.Failed("当前密码不符合规范请重新输入密码");
}
//
}
if
(
model
.
EmPassword
.
Length
>
50
)
if
(
model
.
EmPassword
.
Length
>
50
)
{
{
return
ApiResult
.
Failed
(
"密码长度输入过长!"
);
return
ApiResult
.
Failed
(
"密码长度输入过长!"
);
...
@@ -546,10 +546,10 @@ namespace REBORN.Services.UserService
...
@@ -546,10 +546,10 @@ namespace REBORN.Services.UserService
{
{
return
ApiResult
.
ParamIsNull
();
return
ApiResult
.
ParamIsNull
();
}
}
if
(!
ValidateHepler
.
IsPwd
(
Pwd
))
//
if (!ValidateHepler.IsPwd(Pwd))
{
//
{
return
ApiResult
.
Failed
(
"密码必须为大写字母+小写字母+数字或?!&$%#_,至少6位"
);
//
return ApiResult.Failed("密码必须为大写字母+小写字母+数字或?!&$%#_,至少6位");
}
//
}
if
(
Pwd
.
Length
>
50
)
if
(
Pwd
.
Length
>
50
)
{
{
return
ApiResult
.
Failed
(
"密码长度过长!"
);
return
ApiResult
.
Failed
(
"密码长度过长!"
);
...
@@ -1634,10 +1634,10 @@ namespace REBORN.Services.UserService
...
@@ -1634,10 +1634,10 @@ namespace REBORN.Services.UserService
{
{
return
ApiResult
.
Failed
(
"密码长度过长!"
);
return
ApiResult
.
Failed
(
"密码长度过长!"
);
}
}
if
(!
ValidateHepler
.
IsPwd
(
Pwd
))
//
if (!ValidateHepler.IsPwd(Pwd))
{
//
{
return
ApiResult
.
Failed
(
"当前密码不符合规范请重新输入密码"
);
//
return ApiResult.Failed("当前密码不符合规范请重新输入密码");
}
//
}
var
emodel
=
employeemodule
.
Get
(
Id
);
var
emodel
=
employeemodule
.
Get
(
Id
);
if
(
emodel
==
null
)
if
(
emodel
==
null
)
{
{
...
...
REBORN.Services.UserService/LoginService.cs
View file @
c338822a
...
@@ -115,7 +115,7 @@ namespace REBORN.Services.UserService
...
@@ -115,7 +115,7 @@ namespace REBORN.Services.UserService
if
(
IsExactness
)
if
(
IsExactness
)
{
{
string
oldPass
=
Common
.
DES
.
Decrypt
(
EmPassword
);
string
oldPass
=
Common
.
DES
.
Decrypt
(
EmPassword
);
IsExactness
=
ValidateHepler
.
IsPwd
(
oldPass
);
//不符合规范也强制修改密码
IsExactness
=
true
;
//
ValidateHepler.IsPwd(oldPass);//不符合规范也强制修改密码
}
}
}
}
string
GroupName
=
gmodel
!=
null
?
gmodel
.
GroupName
:
""
;
string
GroupName
=
gmodel
!=
null
?
gmodel
.
GroupName
:
""
;
...
@@ -1242,10 +1242,10 @@ namespace REBORN.Services.UserService
...
@@ -1242,10 +1242,10 @@ namespace REBORN.Services.UserService
return
ApiResult
.
Failed
(
"密码不能为空"
);
return
ApiResult
.
Failed
(
"密码不能为空"
);
}
}
if
(!
ValidateHepler
.
IsPwd
(
password
))
//
if (!ValidateHepler.IsPwd(password))
{
//
{
return
ApiResult
.
Failed
(
"当前密码不符合规范请重新输入密码"
);
//
return ApiResult.Failed("当前密码不符合规范请重新输入密码");
}
//
}
RB_Employee
emp
=
loginmodule
.
GetByLoginMobile
(
mobileNumber
,
groupId
);
RB_Employee
emp
=
loginmodule
.
GetByLoginMobile
(
mobileNumber
,
groupId
);
if
(
emp
!=
null
)
if
(
emp
!=
null
)
...
...
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