Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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-auth
Commits
04470711
Commit
04470711
authored
May 14, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!9
parents
053ef216
243cba2e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
101 additions
and
20 deletions
+101
-20
UserApiService.java
...pi/src/main/java/com/gic/auth/service/UserApiService.java
+10
-0
UserApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
+9
-0
AuthCodeController.java
.../java/com/gic/auth/web/controller/AuthCodeController.java
+2
-2
MenuController.java
...main/java/com/gic/auth/web/controller/MenuController.java
+32
-5
RoleController.java
...main/java/com/gic/auth/web/controller/RoleController.java
+18
-2
UserController.java
...main/java/com/gic/auth/web/controller/UserController.java
+14
-11
EnterpriseBasicAppUtils.java
.../java/com/gic/auth/web/utils/EnterpriseBasicAppUtils.java
+16
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/UserApiService.java
View file @
04470711
...
@@ -195,6 +195,16 @@ public interface UserApiService {
...
@@ -195,6 +195,16 @@ public interface UserApiService {
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.UserDTO>>
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.UserDTO>>
*/
*/
ServiceResponse
<
List
<
UserDTO
>>
listGicUser
(
Integer
enterpriseId
);
ServiceResponse
<
List
<
UserDTO
>>
listGicUser
(
Integer
enterpriseId
);
/**
* 运维账户
* @Title: listOperationUser
* @Description:
* @author guojuxing
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.UserDTO>>
*/
ServiceResponse
<
List
<
UserDTO
>>
listOperationUser
(
Integer
enterpriseId
);
/**
/**
* 查询全部
* 查询全部
* @Title: listUser
* @Title: listUser
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
View file @
04470711
...
@@ -453,6 +453,15 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -453,6 +453,15 @@ public class UserApiServiceImpl implements UserApiService {
}
}
@Override
@Override
public
ServiceResponse
<
List
<
UserDTO
>>
listOperationUser
(
Integer
enterpriseId
)
{
List
<
TabSysUser
>
list
=
userService
.
listGicUser
(
enterpriseId
,
1
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListNew
(
UserDTO
.
class
,
list
));
}
return
ServiceResponse
.
success
(
Collections
.
emptyList
());
}
@Override
public
ServiceResponse
<
List
<
UserDTO
>>
listUser
(
Integer
enterpriseId
)
{
public
ServiceResponse
<
List
<
UserDTO
>>
listUser
(
Integer
enterpriseId
)
{
List
<
TabSysUser
>
list
=
userService
.
listGicUser
(
enterpriseId
,
null
);
List
<
TabSysUser
>
list
=
userService
.
listGicUser
(
enterpriseId
,
null
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/AuthCodeController.java
View file @
04470711
...
@@ -55,8 +55,8 @@ public class AuthCodeController {
...
@@ -55,8 +55,8 @@ public class AuthCodeController {
if
(
enterprise
.
isSuccess
()
&&
enterprise
.
getResult
()
!=
null
){
if
(
enterprise
.
isSuccess
()
&&
enterprise
.
getResult
()
!=
null
){
String
enterpriseName
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
();
String
enterpriseName
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
();
ServiceResponse
<
UserDTO
>
user
=
this
.
userApiService
.
getUserByEnterpriseId
(
eid
);
ServiceResponse
<
UserDTO
>
user
=
this
.
userApiService
.
getUserByEnterpriseId
(
eid
);
String
[]
smsArr
=
new
String
[]
{
enterprise
.
getResult
().
getEnterpriseName
(),
enterpriseName
,
code
,
enterpriseNam
e
};
String
[]
smsArr
=
new
String
[]
{
enterpriseName
,
cod
e
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GIC
UnionEnterprise
"
,
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GIC
JFZX006
"
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseId
(),
user
.
getResult
().
getPhoneAreaCode
(),
user
.
getResult
().
getPhoneNumber
(),
smsArr
);
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseId
(),
user
.
getResult
().
getPhoneAreaCode
(),
user
.
getResult
().
getPhoneNumber
(),
smsArr
);
if
(
smsSendResult
.
isSuccess
()){
if
(
smsSendResult
.
isSuccess
()){
ServiceResponse
<
Integer
>
serviceResponse
=
this
.
authCodeApiService
.
saveAuth
(
authCodeDTO
);
ServiceResponse
<
Integer
>
serviceResponse
=
this
.
authCodeApiService
.
saveAuth
(
authCodeDTO
);
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/MenuController.java
View file @
04470711
...
@@ -6,6 +6,7 @@ import java.util.*;
...
@@ -6,6 +6,7 @@ import java.util.*;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.gic.auth.constant.MenuProjectConstants
;
import
com.gic.auth.constant.MenuProjectConstants
;
import
com.gic.auth.web.utils.EnterpriseBasicAppUtils
;
import
com.gic.log.api.dto.LogSearchDTO
;
import
com.gic.log.api.dto.LogSearchDTO
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -196,8 +197,15 @@ public class MenuController {
...
@@ -196,8 +197,15 @@ public class MenuController {
null
);
null
);
}
}
if
(
result
.
isSuccess
())
{
if
(
result
.
isSuccess
())
{
//过滤商户基础应用
List
<
MenuDTO
>
appMenuList
=
result
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
appMenuList
))
{
appMenuList
=
appMenuList
.
stream
()
.
filter
(
e
->
!
EnterpriseBasicAppUtils
.
ENTERPRISE_BASIC_APP_CODE
.
equals
(
e
.
getMenuCode
()))
.
collect
(
Collectors
.
toList
());
}
return
RestResponse
return
RestResponse
.
success
(
changePageListToTree
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
result
.
getResult
()
));
.
success
(
changePageListToTree
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
appMenuList
));
}
}
return
EnterpriseRestResponse
.
failure
(
result
);
return
EnterpriseRestResponse
.
failure
(
result
);
}
}
...
@@ -217,7 +225,10 @@ public class MenuController {
...
@@ -217,7 +225,10 @@ public class MenuController {
public
RestResponse
listOperationLog
(
String
startTime
,
String
endTime
,
Integer
menuId
,
String
search
,
PageQO
pageQO
)
public
RestResponse
listOperationLog
(
String
startTime
,
String
endTime
,
Integer
menuId
,
String
search
,
PageQO
pageQO
)
throws
ParseException
{
throws
ParseException
{
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
UserDetail
userDetail
=
UserDetailUtils
.
getUserDetail
();
Integer
enterpriseId
=
userDetail
.
getEnterpriseId
();
//是否是超级管理员
boolean
isSuperAdmin
=
userDetail
.
getUserInfo
().
getSuperAdmin
().
intValue
()
==
1
;
LogSearchDTO
searchParam
=
new
LogSearchDTO
();
LogSearchDTO
searchParam
=
new
LogSearchDTO
();
searchParam
.
setEnterpriseId
(
Long
.
valueOf
(
enterpriseId
));
searchParam
.
setEnterpriseId
(
Long
.
valueOf
(
enterpriseId
));
...
@@ -227,7 +238,6 @@ public class MenuController {
...
@@ -227,7 +238,6 @@ public class MenuController {
}
else
{
}
else
{
//权限控制
//权限控制
List
<
Long
>
relationIdList
=
new
ArrayList
<>();
List
<
Long
>
relationIdList
=
new
ArrayList
<>();
UserDetail
userDetail
=
UserDetailUtils
.
getUserDetail
();
//权限控制
//权限控制
ServiceResponse
<
List
<
MenuDTO
>>
gicResult
=
menuApiService
.
getUserMenuOfGicNotTree
(
ServiceResponse
<
List
<
MenuDTO
>>
gicResult
=
menuApiService
.
getUserMenuOfGicNotTree
(
userDetail
.
getEnterpriseId
(),
userDetail
.
getUserId
(),
null
,
userDetail
.
getEnterpriseId
(),
userDetail
.
getUserId
(),
null
,
...
@@ -237,7 +247,6 @@ public class MenuController {
...
@@ -237,7 +247,6 @@ public class MenuController {
relationIdList
.
addAll
(
Optional
.
ofNullable
(
gicMenuList
).
orElse
(
new
ArrayList
<>()).
stream
()
relationIdList
.
addAll
(
Optional
.
ofNullable
(
gicMenuList
).
orElse
(
new
ArrayList
<>()).
stream
()
.
mapToLong
(
e
->
e
.
getMenuId
()).
boxed
().
collect
(
Collectors
.
toList
()));
.
mapToLong
(
e
->
e
.
getMenuId
()).
boxed
().
collect
(
Collectors
.
toList
()));
}
}
boolean
isSuperAdmin
=
userDetail
.
getUserInfo
().
getSuperAdmin
().
intValue
()
==
1
;
ServiceResponse
<
List
<
MenuDTO
>>
appResult
;
ServiceResponse
<
List
<
MenuDTO
>>
appResult
;
if
(
isSuperAdmin
)
{
if
(
isSuperAdmin
)
{
appResult
=
menuApiService
.
listAppPageOfHasBuy
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
appResult
=
menuApiService
.
listAppPageOfHasBuy
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
...
@@ -263,9 +272,27 @@ public class MenuController {
...
@@ -263,9 +272,27 @@ public class MenuController {
searchParam
.
setLogTimeEnd
(
sdf
.
parse
(
endTime
));
searchParam
.
setLogTimeEnd
(
sdf
.
parse
(
endTime
));
}
}
//用于过滤
List
<
String
>
matchPhoneList
=
new
ArrayList
<>();
//过滤运营操作,如果是品牌方登录;过滤品牌方日志,如果是运营登录
ServiceResponse
<
List
<
UserDTO
>>
userResult
;
if
(
userDetail
.
getUserInfo
().
getLoginType
().
intValue
()
==
0
)
{
userResult
=
userApiService
.
listGicUser
(
enterpriseId
);
}
else
{
userResult
=
userApiService
.
listOperationUser
(
enterpriseId
);
}
if
(
userResult
.
isSuccess
())
{
List
<
UserDTO
>
userList
=
userResult
.
getResult
();
matchPhoneList
=
userList
.
stream
()
.
map
(
e
->
e
.
getPhoneNumber
())
.
collect
(
Collectors
.
toList
());
}
if
(
CollectionUtils
.
isNotEmpty
(
matchPhoneList
))
{
searchParam
.
setPhoneList
(
matchPhoneList
);
}
ServiceResponse
<
Page
<
SystemSetLogDTO
>>
response
=
logApiService
.
listSystemSetLog
(
pageQO
.
getPageSize
(),
ServiceResponse
<
Page
<
SystemSetLogDTO
>>
response
=
logApiService
.
listSystemSetLog
(
pageQO
.
getPageSize
(),
pageQO
.
getCurrentPage
(),
searchParam
);
pageQO
.
getCurrentPage
(),
searchParam
);
return
ResultControllerUtils
.
commonPageResult
(
response
,
LogListVO
.
class
);
return
ResultControllerUtils
.
commonPageResult
(
response
,
LogListVO
.
class
);
}
}
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/RoleController.java
View file @
04470711
...
@@ -4,7 +4,10 @@ import java.util.ArrayList;
...
@@ -4,7 +4,10 @@ import java.util.ArrayList;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
com.gic.auth.web.utils.EnterpriseBasicAppUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -70,9 +73,16 @@ public class RoleController {
...
@@ -70,9 +73,16 @@ public class RoleController {
//app已购买应用
//app已购买应用
ServiceResponse
<
List
<
MenuDTO
>>
appResult
=
menuApiService
ServiceResponse
<
List
<
MenuDTO
>>
appResult
=
menuApiService
.
listAppPageOfHasBuy
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
.
listAppPageOfHasBuy
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
//过滤商户基础应用
List
<
MenuDTO
>
appMenuList
=
appResult
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
appMenuList
))
{
appMenuList
=
appMenuList
.
stream
()
.
filter
(
e
->
!
EnterpriseBasicAppUtils
.
ENTERPRISE_BASIC_APP_CODE
.
equals
(
e
.
getMenuCode
()))
.
collect
(
Collectors
.
toList
());
}
vo
.
setAppMap
(
vo
.
setAppMap
(
changeListToSelectTree
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
app
Result
.
getResult
()
,
gicMap
));
changeListToSelectTree
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
app
MenuList
,
gicMap
));
return
RestResponse
.
success
(
vo
);
return
RestResponse
.
success
(
vo
);
}
}
return
EnterpriseRestResponse
.
failure
(
roleResult
);
return
EnterpriseRestResponse
.
failure
(
roleResult
);
...
@@ -144,7 +154,13 @@ public class RoleController {
...
@@ -144,7 +154,13 @@ public class RoleController {
ServiceResponse
<
List
<
MenuDTO
>>
result
=
menuApiService
ServiceResponse
<
List
<
MenuDTO
>>
result
=
menuApiService
.
listAppPageOfHasBuy
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
.
listAppPageOfHasBuy
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
if
(
result
.
isSuccess
())
{
if
(
result
.
isSuccess
())
{
return
RestResponse
.
success
(
changeListToTree
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
result
.
getResult
()));
List
<
MenuDTO
>
menuList
=
result
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
menuList
))
{
menuList
=
menuList
.
stream
()
.
filter
(
e
->
!
EnterpriseBasicAppUtils
.
ENTERPRISE_BASIC_APP_CODE
.
equals
(
e
.
getMenuCode
()))
.
collect
(
Collectors
.
toList
());
}
return
RestResponse
.
success
(
changeListToTree
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
menuList
));
}
}
return
EnterpriseRestResponse
.
failure
(
result
);
return
EnterpriseRestResponse
.
failure
(
result
);
}
}
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/UserController.java
View file @
04470711
...
@@ -3,6 +3,7 @@ package com.gic.auth.web.controller;
...
@@ -3,6 +3,7 @@ package com.gic.auth.web.controller;
import
com.gic.auth.web.vo.SuperUserVO
;
import
com.gic.auth.web.vo.SuperUserVO
;
import
com.gic.auth.web.vo.UserOfGicVO
;
import
com.gic.auth.web.vo.UserOfGicVO
;
import
com.gic.enterprise.base.EnterpriseInfo
;
import
com.gic.enterprise.base.EnterpriseInfo
;
import
com.gic.enterprise.constants.Constants
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.log4j.LogManager
;
import
org.apache.log4j.LogManager
;
import
org.apache.log4j.Logger
;
import
org.apache.log4j.Logger
;
...
@@ -71,23 +72,26 @@ public class UserController {
...
@@ -71,23 +72,26 @@ public class UserController {
if
(
isNeedSendSms
)
{
if
(
isNeedSendSms
)
{
//发送短信,通知自动生成密码
//发送短信,通知自动生成密码
if
(
StringUtils
.
isBlank
(
userDTO
.
getPhoneAreaCode
()))
{
if
(
StringUtils
.
isBlank
(
userDTO
.
getPhoneAreaCode
()))
{
userDTO
.
setPhoneAreaCode
(
"86"
);
userDTO
.
setPhoneAreaCode
(
Constants
.
NATION_CODE
);
}
}
smsArr
=
new
String
[]
{
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
(),
smsArr
=
new
String
[]
{
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
(),
password
};
userDTO
.
getPhoneNumber
(),
password
};
}
}
}
}
ServiceResponse
userResult
;
ServiceResponse
userResult
;
//普通用户
//普通用户
userDTO
.
setSuperAdmin
(
0
);
userDTO
.
setSuperAdmin
(
0
);
//sms场景ID
String
smsSenceId
=
"GICSHHT003"
;
if
(
userDTO
.
getUserId
()
==
null
)
{
if
(
userDTO
.
getUserId
()
==
null
)
{
userResult
=
userApiService
.
saveUser
(
userDTO
);
userResult
=
userApiService
.
saveUser
(
userDTO
);
}
else
{
}
else
{
smsSenceId
=
"GICSHHT004"
;
userResult
=
userApiService
.
editUser
(
userDTO
);
userResult
=
userApiService
.
editUser
(
userDTO
);
}
}
if
(
userResult
.
isSuccess
())
{
if
(
userResult
.
isSuccess
())
{
if
(
isNeedSendSms
)
{
if
(
isNeedSendSms
)
{
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GICpassword001"
,
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
smsSenceId
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseId
(),
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseId
(),
userDTO
.
getPhoneAreaCode
(),
userDTO
.
getPhoneNumber
(),
smsArr
);
userDTO
.
getPhoneAreaCode
(),
userDTO
.
getPhoneNumber
(),
smsArr
);
if
(!
smsSendResult
.
isSuccess
())
{
if
(!
smsSendResult
.
isSuccess
())
{
...
@@ -153,7 +157,7 @@ public class UserController {
...
@@ -153,7 +157,7 @@ public class UserController {
@RequestMapping
(
"send-auth-code-to-modify-phone"
)
@RequestMapping
(
"send-auth-code-to-modify-phone"
)
public
RestResponse
sendAuthCode
(
String
phone
,
String
nationCode
)
{
public
RestResponse
sendAuthCode
(
String
phone
,
String
nationCode
)
{
if
(
StringUtils
.
isBlank
(
nationCode
))
{
if
(
StringUtils
.
isBlank
(
nationCode
))
{
nationCode
=
"86"
;
nationCode
=
Constants
.
NATION_CODE
;
}
}
AuthCodeDTO
authCodeDTO
=
new
AuthCodeDTO
();
AuthCodeDTO
authCodeDTO
=
new
AuthCodeDTO
();
authCodeDTO
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
authCodeDTO
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
...
@@ -168,9 +172,8 @@ public class UserController {
...
@@ -168,9 +172,8 @@ public class UserController {
if
(
result
.
isSuccess
())
{
if
(
result
.
isSuccess
())
{
Integer
authCodeId
=
result
.
getResult
();
Integer
authCodeId
=
result
.
getResult
();
//发送手机验证码
//发送手机验证码
String
[]
smsArr
=
new
String
[]
{
authCode
,
String
[]
smsArr
=
new
String
[]
{
authCode
};
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
()
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GICSHHT005"
,
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GICphone"
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseId
(),
nationCode
,
phone
,
smsArr
);
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseId
(),
nationCode
,
phone
,
smsArr
);
if
(!
smsSendResult
.
isSuccess
())
{
if
(!
smsSendResult
.
isSuccess
())
{
return
EnterpriseRestResponse
.
failure
(
smsSendResult
);
return
EnterpriseRestResponse
.
failure
(
smsSendResult
);
...
@@ -213,9 +216,9 @@ public class UserController {
...
@@ -213,9 +216,9 @@ public class UserController {
if
(
result
.
isSuccess
())
{
if
(
result
.
isSuccess
())
{
Integer
authCodeId
=
result
.
getResult
();
Integer
authCodeId
=
result
.
getResult
();
//发送手机验证码
//发送手机验证码
String
[]
smsArr
=
new
String
[]
{
authCode
,
String
[]
smsArr
=
new
String
[]
{
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
()
};
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseName
()
,
authCode
};
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GIC
password
"
,
ServiceResponse
<
Void
>
smsSendResult
=
smsSendApiService
.
sendPlatformSms
(
"GIC
SHHT004
"
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseId
(),
UserDetailUtils
.
getUserDetail
().
getEnterpriseInfo
().
getEnterpriseId
(),
UserDetailUtils
.
getUserDetail
().
getUserInfo
().
getPhoneAreaCode
(),
UserDetailUtils
.
getUserDetail
().
getUserInfo
().
getPhoneAreaCode
(),
UserDetailUtils
.
getUserDetail
().
getUserInfo
().
getPhoneNumber
(),
smsArr
);
UserDetailUtils
.
getUserDetail
().
getUserInfo
().
getPhoneNumber
(),
smsArr
);
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/utils/EnterpriseBasicAppUtils.java
0 → 100644
View file @
04470711
package
com
.
gic
.
auth
.
web
.
utils
;
/**
* 商户基础服务应用code
* @ClassName: EnterpriseBasicAppUtils
* @Description:
* @author guojuxing
* @date 2020/5/9 9:36 AM
*/
public
class
EnterpriseBasicAppUtils
{
/**
* 商户基础服务code,用于过滤应用列表
*/
public
static
final
String
ENTERPRISE_BASIC_APP_CODE
=
"enterpriseBasicApp"
;
}
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