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
831ad3ee
Commit
831ad3ee
authored
Jan 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改超级管理员,添加发送短信业务逻辑
parent
2082cd62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
EnterpriseController.java
...om/gic/operation/web/controller/EnterpriseController.java
+12
-2
No files found.
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/EnterpriseController.java
View file @
831ad3ee
...
...
@@ -212,10 +212,20 @@ public class EnterpriseController {
ServiceResponse
<
Void
>
result
=
userApiService
.
editAdmin
(
userDTO
);
//自动创建密码,需要发送短信
if
(
result
.
isSuccess
()
&&
isAutoPassword
)
{
String
[]
smsArr
=
new
String
[]
{
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
(),
Integer
enterpriseId
=
userDTO
.
getEnterpriseId
();
//商户ID查询商户信息
//商户名称
String
enterpriseName
=
null
;
ServiceResponse
<
EnterpriseDTO
>
enterpriseResult
=
enterpriseApiService
.
getEnterpriseById
(
enterpriseId
);
if
(
enterpriseResult
.
isSuccess
())
{
enterpriseName
=
enterpriseResult
.
getResult
().
getEnterpriseName
();
}
else
{
LOGGER
.
warn
(
enterpriseResult
.
getMessage
());
}
String
[]
smsArr
=
new
String
[]
{
enterpriseName
,
userDTO
.
getPhoneNumber
(),
userDTO
.
getPassword
()
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GICpassword001"
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
,
userDTO
.
getPhoneAreaCode
(),
enterpriseId
,
userDTO
.
getPhoneAreaCode
(),
userDTO
.
getPhoneNumber
(),
smsArr
);
if
(!
smsSendResult
.
isSuccess
())
{
LOGGER
.
warn
(
smsSendResult
.
getMessage
());
...
...
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