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
3 years ago
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加coas用户推送开关
parent
10384161
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
CoasHandleController.java
...ss/presentation/noui/controller/CoasHandleController.java
+7
-1
coas.properties
src/main/resources/coas.properties
+2
-0
No files found.
src/main/java/org/sss/presentation/noui/controller/CoasHandleController.java
View file @
3ba8a50b
...
...
@@ -31,6 +31,8 @@ public class CoasHandleController {
private
String
client_secret
;
@Value
(
"${coas_server}"
)
private
String
coas_server
;
@Value
(
"${pushuser}"
)
private
String
pushuser
;
private
Gson
gson
=
new
Gson
();
@Autowired
private
NoUiVersion
noUiVersion
;
...
...
@@ -98,7 +100,11 @@ public class CoasHandleController {
@ResponseBody
@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
uname
=
dataMap
.
get
(
"uname"
);
String
coasroleid
=
dataMap
.
get
(
"coasroleid"
);
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/coas.properties
View file @
3ba8a50b
client_id
=
ESFE
client_secret
=
666666
coas_server
=
http://111.1.12.211:8088/coas/
pushuser
=
off
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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