Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
b72ec23b
Commit
b72ec23b
authored
Sep 10, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
a4b9c0f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
UserController.java
...om/github/wxiaoqi/security/admin/rest/UserController.java
+12
-0
SmsService.java
.../java/com/xxfc/platform/universal/service/SmsService.java
+3
-2
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/UserController.java
View file @
b72ec23b
...
@@ -5,6 +5,7 @@ import com.github.wxiaoqi.security.admin.biz.MenuBiz;
...
@@ -5,6 +5,7 @@ import com.github.wxiaoqi.security.admin.biz.MenuBiz;
import
com.github.wxiaoqi.security.admin.biz.UserBiz
;
import
com.github.wxiaoqi.security.admin.biz.UserBiz
;
import
com.github.wxiaoqi.security.admin.entity.Menu
;
import
com.github.wxiaoqi.security.admin.entity.Menu
;
import
com.github.wxiaoqi.security.admin.entity.User
;
import
com.github.wxiaoqi.security.admin.entity.User
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.rpc.service.PermissionService
;
import
com.github.wxiaoqi.security.admin.rpc.service.PermissionService
;
import
com.github.wxiaoqi.security.admin.vo.FrontUser
;
import
com.github.wxiaoqi.security.admin.vo.FrontUser
;
import
com.github.wxiaoqi.security.admin.vo.GroupUsers
;
import
com.github.wxiaoqi.security.admin.vo.GroupUsers
;
...
@@ -124,9 +125,20 @@ public class UserController extends CommonBaseController {
...
@@ -124,9 +125,20 @@ public class UserController extends CommonBaseController {
if
(
StringUtils
.
isBlank
(
state
)){
if
(
StringUtils
.
isBlank
(
state
)){
state
=
"0,1"
;
state
=
"0,1"
;
}
}
if
(
StringUtils
.
isBlank
(
token
)){
token
=
userAuthConfig
.
getToken
(
request
);
}
return
permissionService
.
getMenusByUsername
(
token
,
state
);
return
permissionService
.
getMenusByUsername
(
token
,
state
);
}
}
@RequestMapping
(
value
=
"/front/house/menus"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
getMenus
(
String
state
)
throws
Exception
{
if
(
StringUtils
.
isBlank
(
state
)){
state
=
"0,2"
;
}
return
ObjectRestResponse
.
succ
(
permissionService
.
getMenusByUsername
(
userAuthConfig
.
getToken
(
request
),
state
));
}
@RequestMapping
(
value
=
"/front/menu/all"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/front/menu/all"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
public
@ResponseBody
List
<
Menu
>
getAllMenus
()
throws
Exception
{
List
<
Menu
>
getAllMenus
()
throws
Exception
{
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/SmsService.java
View file @
b72ec23b
...
@@ -141,6 +141,7 @@ public class SmsService {
...
@@ -141,6 +141,7 @@ public class SmsService {
log
.
info
(
"RequestId="
+
sendSmsResponse
.
getRequestId
());
log
.
info
(
"RequestId="
+
sendSmsResponse
.
getRequestId
());
log
.
info
(
"BizId="
+
sendSmsResponse
.
getBizId
());
log
.
info
(
"BizId="
+
sendSmsResponse
.
getBizId
());
if
(
sendSmsResponse
.
getCode
()
!=
null
&&
sendSmsResponse
.
getCode
().
equals
(
"OK"
))
{
if
(
sendSmsResponse
.
getCode
()
!=
null
&&
sendSmsResponse
.
getCode
().
equals
(
"OK"
))
{
log
.
info
(
"发送成功"
);
//请求成功
//请求成功
return
true
;
return
true
;
}
}
...
@@ -239,8 +240,8 @@ public class SmsService {
...
@@ -239,8 +240,8 @@ public class SmsService {
public
static
void
main
(
String
[]
args
)
throws
ClientException
,
InterruptedException
{
public
static
void
main
(
String
[]
args
)
throws
ClientException
,
InterruptedException
{
SmsService
smsService
=
new
SmsService
();
SmsService
smsService
=
new
SmsService
();
//发短信
//发短信
String
[]
params
={
"1"
,
"2"
,
"3"
,
"2019-08-29"
,
"【松山湖】"
}
;
String
params
=
"{\"param7\":\"\",\"param8\":\"2019-10-09 09:00:00\",\"param5\":\"\",\"param6\":\"欣新房车控股集团\",\"param9\":\"2019-10-09 18:00:00\",\"param10\":\"1\",\"param3\":\"测试依维柯后拓展房车(仅供测试使用,不提供任何服务)\",\"param4\":\"欣新房车控股集团\",\"param1\":\"肖少林\",\"param2\":\"18681032646\"}"
;
SmsService
.
sendTemplateToJson
(
"13612688539,13265487972"
,
params
,
"SMS_169904346
"
);
sendTemplate
(
"13612688539"
,
params
,
"SMS_173345572
"
);
/*System.out.println("短信接口返回的数据----------------");
/*System.out.println("短信接口返回的数据----------------");
System.out.println("Code=" + response.getCode());
System.out.println("Code=" + response.getCode());
System.out.println("Message=" + response.getMessage());
System.out.println("Message=" + response.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