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
0ab7c85c
Commit
0ab7c85c
authored
May 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超级管理员短信提醒修改
parent
983d54a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
EnterpriseController.java
...om/gic/operation/web/controller/EnterpriseController.java
+6
-5
No files found.
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/EnterpriseController.java
View file @
0ab7c85c
...
...
@@ -5,6 +5,7 @@ import java.util.*;
import
com.gic.authcenter.security.core.constant.DataResourceEnum
;
import
com.gic.authcenter.security.core.dto.AuthcenterUserDetails
;
import
com.gic.enterprise.constants.Constants
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
...
...
@@ -129,10 +130,10 @@ public class EnterpriseController {
if
(
result
.
isSuccess
()
&&
UserConstants
.
CREATE_AUTO
==
userDTO
.
getPasswordType
().
intValue
())
{
//发送短信,通知自动生成密码
if
(
StringUtils
.
isBlank
(
userDTO
.
getPhoneAreaCode
()))
{
userDTO
.
setPhoneAreaCode
(
"+86"
);
userDTO
.
setPhoneAreaCode
(
Constants
.
NATION_CODE
);
}
String
[]
smsArr
=
new
String
[]
{
enterpriseDTO
.
getEnterpriseName
(),
userDTO
.
getPhoneNumber
(),
password
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GIC
password001
"
,
String
[]
smsArr
=
new
String
[]
{
enterpriseDTO
.
getEnterpriseName
(),
password
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GIC
SHHT003
"
,
result
.
getResult
(),
userDTO
.
getPhoneAreaCode
(),
userDTO
.
getPhoneNumber
(),
smsArr
);
if
(!
smsSendResult
.
isSuccess
())
{
LOGGER
.
warn
(
smsSendResult
.
getMessage
());
...
...
@@ -285,8 +286,8 @@ public class EnterpriseController {
}
else
{
LOGGER
.
warn
(
enterpriseResult
.
getMessage
());
}
String
[]
smsArr
=
new
String
[]
{
enterpriseName
,
userDTO
.
getPhoneNumber
(),
autoPassword
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GIC
password001
"
,
enterpriseId
,
String
[]
smsArr
=
new
String
[]
{
enterpriseName
,
autoPassword
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GIC
SHHT004
"
,
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