Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
曲欣亮
shop
Commits
bfe51b4a
Commit
bfe51b4a
authored
Apr 17, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5013f6f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
20 deletions
+7
-20
PayNotifyController.java
src/main/java/com/egolm/shop/api/PayNotifyController.java
+7
-20
No files found.
src/main/java/com/egolm/shop/api/PayNotifyController.java
View file @
bfe51b4a
...
...
@@ -14,6 +14,7 @@ import org.json.XML;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -72,32 +73,18 @@ public class PayNotifyController {
@ApiIgnore
@ApiOperation
(
"微企付回调通知接口"
)
@RequestMapping
(
value
=
"/msePayCallback"
,
method
=
RequestMethod
.
POST
)
public
Object
mepayCallback
(
HttpServletRequest
req
,
HttpServletResponse
resp
)
{
try
{
ServletInputStream
in
=
req
.
getInputStream
();
String
xmlMsg
=
StringUtil
.
inputStream2String
(
in
);
logger
.
info
(
"接收到微企付回调通知接口 {}"
,
xmlMsg
);
public
Object
mepayCallback
(
@RequestBody
String
req
,
HttpServletResponse
resp
)
{
logger
.
info
(
"接收到微企付回调通知接口: "
+
req
);
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
return
"success"
;
}
@ApiIgnore
@ApiOperation
(
"网商银行回调通知接口"
)
@RequestMapping
(
value
=
"/mybankCallback"
,
method
=
RequestMethod
.
POST
)
public
Object
mybankCallback
(
HttpServletRequest
req
,
HttpServletResponse
resp
)
{
try
{
ServletInputStream
in
=
req
.
getInputStream
();
String
xmlMsg
=
StringUtil
.
inputStream2String
(
in
);
logger
.
info
(
"网商银行回调通知接口 {}"
,
xmlMsg
);
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
public
Object
mybankCallback
(
@RequestBody
String
req
,
HttpServletResponse
resp
)
{
logger
.
info
(
"网商银行回调通知接口 {}"
,
req
);
return
"success"
;
}
...
...
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