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
d1e7ea1b
authored
Nov 30, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序订场退款回调
parent
f66cd9f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 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 @
d1e7ea1b
...
...
@@ -122,8 +122,8 @@ public class NotifyController {
* @param createPayOrderRequestBean CreatePayOrderRequestBean
*/
@ResponseBody
@RequestMapping
(
value
=
"/weiXinRefoundNotifyUrl"
,
method
=
RequestMethod
.
POST
)
public
Object
weiXinRefoundNotifyUrl
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
Exception
{
@RequestMapping
(
value
=
"/
{orderType}/
weiXinRefoundNotifyUrl"
,
method
=
RequestMethod
.
POST
)
public
Object
weiXinRefoundNotifyUrl
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
String
orderType
)
throws
Exception
{
BufferedReader
reader
=
null
;
reader
=
request
.
getReader
();
String
line
=
""
;
...
...
@@ -135,7 +135,7 @@ public class NotifyController {
}
xmlString
=
inputString
.
toString
();
request
.
getReader
().
close
();
this
.
notifyService
.
weiXinRefoundNotifyUrl
(
xmlString
);
this
.
notifyService
.
weiXinRefoundNotifyUrl
(
xmlString
,
orderType
);
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 @
d1e7ea1b
...
...
@@ -75,9 +75,9 @@ public class NotifyService {
* @param paymentResponse
* @return
*/
public
String
weiXinRefoundNotifyUrl
(
String
xml
)
{
public
String
weiXinRefoundNotifyUrl
(
String
xml
,
String
orderType
)
{
HttpEntity
<
String
>
entity
=
new
HttpEntity
<
String
>(
xml
);
String
response
=
restTemplate
.
exchange
(
this
.
getServerBaseNotifyPath
()+
"/
eventActivityOrder
/weiXinRefoundNotifyUrl"
,
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
String
>()
{
String
response
=
restTemplate
.
exchange
(
this
.
getServerBaseNotifyPath
()+
"/
"
+
orderType
+
"
/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