Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-platform-enterprise
Commits
401ccb1b
Commit
401ccb1b
authored
Jan 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改超级管理员,添加发送短信业务逻辑
parent
831ad3ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
EnterpriseController.java
...om/gic/operation/web/controller/EnterpriseController.java
+3
-1
No files found.
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/EnterpriseController.java
View file @
401ccb1b
...
...
@@ -197,8 +197,10 @@ public class EnterpriseController {
public
RestResponse
editUser
(
UserDTO
userDTO
)
{
//自动密码
boolean
isAutoPassword
=
userDTO
.
getPasswordType
()
==
UserConstants
.
CREATE_AUTO
;
String
autoPassword
=
null
;
if
(
isAutoPassword
)
{
String
password
=
UserPasswordUtil
.
createPasswordAuto
();
autoPassword
=
password
;
//密码加密
userDTO
.
setPassword
(
UserPasswordUtil
.
getEncryptPassword
(
password
));
}
...
...
@@ -223,7 +225,7 @@ public class EnterpriseController {
LOGGER
.
warn
(
enterpriseResult
.
getMessage
());
}
String
[]
smsArr
=
new
String
[]
{
enterpriseName
,
userDTO
.
getPhoneNumber
(),
userDTO
.
getPassword
()
};
userDTO
.
getPhoneNumber
(),
autoPassword
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GICpassword001"
,
enterpriseId
,
userDTO
.
getPhoneAreaCode
(),
userDTO
.
getPhoneNumber
(),
smsArr
);
...
...
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