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
3f3b5c16
Commit
3f3b5c16
authored
Aug 19, 2021
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推送接口增加用户手机号推送
coas回调的url拦截调整
parent
a59f6a58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
CoasHandleController.java
...ss/presentation/noui/controller/CoasHandleController.java
+4
-1
spring-mvc.xml
src/main/resources/spring-mvc.xml
+1
-1
No files found.
src/main/java/org/sss/presentation/noui/controller/CoasHandleController.java
View file @
3f3b5c16
...
@@ -104,8 +104,10 @@ public class CoasHandleController {
...
@@ -104,8 +104,10 @@ public class CoasHandleController {
String
coasloginid
=
dataMap
.
get
(
"coasloginid"
);
String
coasloginid
=
dataMap
.
get
(
"coasloginid"
);
String
coasuname
=
dataMap
.
get
(
"coasuname"
);
String
coasuname
=
dataMap
.
get
(
"coasuname"
);
String
certdn
=
dataMap
.
get
(
"certdn"
);
String
certdn
=
dataMap
.
get
(
"certdn"
);
String
coastel
=
dataMap
.
get
(
"coastel"
);
String
url
=
coas_server
+
"push3rduser?client_id={client_id}&client_secret={client_secret}&optype={optype}&"
+
String
url
=
coas_server
+
"push3rduser?client_id={client_id}&client_secret={client_secret}&optype={optype}&"
+
"coasloginid={coasloginid}&coasuname={coasuname}&coascertdn={coascertdn}&loginid={loginid}&uname={uname}"
;
"coasloginid={coasloginid}&coasuname={coasuname}&coascertdn={coascertdn}&loginid={loginid}&uname={uname}"
+
"&coastel={coastel}"
;
Map
<
String
,
String
>
body
=
new
HashMap
<>();
Map
<
String
,
String
>
body
=
new
HashMap
<>();
body
.
put
(
"client_id"
,
client_id
);
body
.
put
(
"client_id"
,
client_id
);
body
.
put
(
"client_secret"
,
client_secret
);
body
.
put
(
"client_secret"
,
client_secret
);
...
@@ -115,6 +117,7 @@ public class CoasHandleController {
...
@@ -115,6 +117,7 @@ public class CoasHandleController {
body
.
put
(
"coascertdn"
,
certdn
);
body
.
put
(
"coascertdn"
,
certdn
);
body
.
put
(
"loginid"
,
loginid
);
body
.
put
(
"loginid"
,
loginid
);
body
.
put
(
"uname"
,
uname
);
body
.
put
(
"uname"
,
uname
);
body
.
put
(
"coastel"
,
coastel
);
log
.
info
(
"准备请求:"
+
url
+
"请求参数:"
+
body
);
log
.
info
(
"准备请求:"
+
url
+
"请求参数:"
+
body
);
ResponseEntity
<
String
>
res
=
HttpClientUtil
.
post
(
url
,
null
,
String
.
class
,
body
);
ResponseEntity
<
String
>
res
=
HttpClientUtil
.
post
(
url
,
null
,
String
.
class
,
body
);
String
res_str
=
res
.
getBody
();
String
res_str
=
res
.
getBody
();
...
...
src/main/resources/spring-mvc.xml
View file @
3f3b5c16
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<mvc:exclude-mapping
path=
"/login"
/>
<mvc:exclude-mapping
path=
"/login"
/>
<mvc:exclude-mapping
path=
"/getUserByDn"
/>
<mvc:exclude-mapping
path=
"/getUserByDn"
/>
<mvc:exclude-mapping
path=
"/login/**"
/>
<mvc:exclude-mapping
path=
"/login/**"
/>
<mvc:exclude-mapping
path=
"/oaut2/**"
/>
<mvc:exclude-mapping
path=
"/oaut
h
2/**"
/>
<!--<mvc:exclude-mapping path="/fileBrowser/**" />-->
<!--<mvc:exclude-mapping path="/fileBrowser/**" />-->
<bean
class=
"org.sss.presentation.noui.jwt.TokenInterceptor"
></bean>
<bean
class=
"org.sss.presentation.noui.jwt.TokenInterceptor"
></bean>
</mvc:interceptor>
</mvc:interceptor>
...
...
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