Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
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
gechengyang
nouiWithSpringMVC
Commits
3ba8a50b
Commit
3ba8a50b
authored
Aug 26, 2021
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加coas用户推送开关
parent
10384161
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
CoasHandleController.java
...ss/presentation/noui/controller/CoasHandleController.java
+7
-1
coas.properties
src/main/resources/coas.properties
+3
-2
No files found.
src/main/java/org/sss/presentation/noui/controller/CoasHandleController.java
View file @
3ba8a50b
...
@@ -31,6 +31,8 @@ public class CoasHandleController {
...
@@ -31,6 +31,8 @@ public class CoasHandleController {
private
String
client_secret
;
private
String
client_secret
;
@Value
(
"${coas_server}"
)
@Value
(
"${coas_server}"
)
private
String
coas_server
;
private
String
coas_server
;
@Value
(
"${pushuser}"
)
private
String
pushuser
;
private
Gson
gson
=
new
Gson
();
private
Gson
gson
=
new
Gson
();
@Autowired
@Autowired
private
NoUiVersion
noUiVersion
;
private
NoUiVersion
noUiVersion
;
...
@@ -98,7 +100,11 @@ public class CoasHandleController {
...
@@ -98,7 +100,11 @@ public class CoasHandleController {
@ResponseBody
@ResponseBody
@RequestMapping
(
value
=
"/coas/pushuser"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/coas/pushuser"
,
method
=
RequestMethod
.
POST
)
public
Object
login
(
@RequestBody
Map
<
String
,
String
>
dataMap
)
{
public
Object
pushuser
(
@RequestBody
Map
<
String
,
String
>
dataMap
)
{
//如果推送开关关闭,则不做推送动作
if
(
"off"
.
equalsIgnoreCase
(
pushuser
)){
return
ResultUtil
.
result
(
ErrorCodes
.
SUCCESS
,
ErrorCodes
.
SUCCESS_INFO
,
null
,
noUiVersion
.
getVersion
());
}
String
loginid
=
dataMap
.
get
(
"loginid"
);
String
loginid
=
dataMap
.
get
(
"loginid"
);
String
uname
=
dataMap
.
get
(
"uname"
);
String
uname
=
dataMap
.
get
(
"uname"
);
String
coasroleid
=
dataMap
.
get
(
"coasroleid"
);
String
coasroleid
=
dataMap
.
get
(
"coasroleid"
);
...
...
src/main/resources/coas.properties
View file @
3ba8a50b
client_id
=
ESFE
client_id
=
ESFE
client_secret
=
666666
client_secret
=
666666
coas_server
=
http://111.1.12.211:8088/coas/
coas_server
=
http://111.1.12.211:8088/coas/
\ No newline at end of file
pushuser
=
off
\ No newline at end of file
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