From 837efd85408f632270c1feab581e4cb4de515b13 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 25 九月 2020 11:48:32 +0800
Subject: [PATCH] 优化代码
---
service-front/src/main/java/com/java110/front/controller/PaymentController.java | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/service-front/src/main/java/com/java110/front/controller/PaymentController.java b/service-front/src/main/java/com/java110/front/controller/PaymentController.java
index b19f79a..3507f60 100644
--- a/service-front/src/main/java/com/java110/front/controller/PaymentController.java
+++ b/service-front/src/main/java/com/java110/front/controller/PaymentController.java
@@ -43,6 +43,9 @@
@Autowired
private IRentingToNotifySMO rentingToNotifySMOImpl;
+ @Autowired
+ private IOweFeeToNotifySMO oweFeeToNotifySMOImpl;
+
/**
@@ -150,18 +153,11 @@
* @param request
* @throws Exception
*/
- @RequestMapping(path = "/oweFeeToPay", method = RequestMethod.POST)
- public ResponseEntity<String> oweFeeToPay(@RequestBody String postInfo, HttpServletRequest request) {
- IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA);
- String appId = request.getHeader("APP_ID");
- if (StringUtil.isEmpty(appId)) {
- appId = request.getHeader("APP-ID");
- }
+ @RequestMapping(path = "/oweFeeNotify", method = RequestMethod.POST)
+ public ResponseEntity<String> oweFeeNotify(@RequestBody String postInfo, HttpServletRequest request) {
+ logger.debug("寰俊鏀粯鍥炶皟鎶ユ枃" + postInfo);
- IPageData newPd = PageData.newInstance().builder(pd.getUserId(), pd.getUserName(), pd.getToken(), postInfo,
- "", "", "", pd.getSessionId(),
- appId);
- return rentingToPaySMOImpl.toPay(newPd);
+ return oweFeeToNotifySMOImpl.toNotify(postInfo,request);
}
/**
* <p>鏀粯鍥炶皟Api</p>
--
Gitblit v1.8.0