Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-common
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d0f18715
authored
Sep 14, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信退款回调接口
parent
663dc2bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
fun-common-soa/src/main/java/com/ctrip/fun/golf/api/payment/NotifyController.java
fun-common-soa/src/main/java/com/ctrip/fun/golf/service/payment/NotifyService.java
fun-common-soa/src/main/java/com/ctrip/fun/golf/api/payment/NotifyController.java
View file @
d0f18715
...
...
@@ -115,13 +115,15 @@ public class NotifyController {
return
null
;
}
/**
* 微信退款通知
*
* @param createPayOrderRequestBean CreatePayOrderRequestBean
*/
@RequestMapping
(
value
=
"/weiXinRefoundNotifyUrl"
,
produces
=
"application/json;charset=UTF-8"
)
@ResponseBody
public
String
weiXinRefoundNotifyUrl
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
Exception
{
@RequestMapping
(
value
=
"/weiXinRefoundNotifyUrl"
,
method
=
RequestMethod
.
POST
)
public
Object
weiXinRefoundNotifyUrl
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
Exception
{
BufferedReader
reader
=
null
;
reader
=
request
.
getReader
();
String
line
=
""
;
...
...
@@ -133,7 +135,7 @@ public class NotifyController {
}
xmlString
=
inputString
.
toString
();
request
.
getReader
().
close
();
this
.
notifyService
.
weiXinRefoundNotifyUrl
(
xmlString
);
this
.
notifyService
.
weiXinRefoundNotifyUrl
(
xmlString
);
response
.
getWriter
().
write
(
"<xml><return_code><![CDATA[SUCCESS]]></return_code></xml>"
);
return
null
;
}
...
...
fun-common-soa/src/main/java/com/ctrip/fun/golf/service/payment/NotifyService.java
View file @
d0f18715
...
...
@@ -77,7 +77,7 @@ public class NotifyService {
*/
public
String
weiXinRefoundNotifyUrl
(
String
xml
)
{
HttpEntity
<
String
>
entity
=
new
HttpEntity
<
String
>(
xml
);
String
response
=
restTemplate
.
exchange
(
this
.
getServerBaseNotifyPath
()+
"/weiXinRefoundNotifyUrl"
,
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
String
>()
{
String
response
=
restTemplate
.
exchange
(
this
.
getServerBaseNotifyPath
()+
"/
eventActivityOrder/
weiXinRefoundNotifyUrl"
,
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
String
>()
{
}).
getBody
();
return
null
;
}
...
...
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