Commit 7493a769 authored by 张永's avatar 张永

V1.1.7.6

parent baadc1bc
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
</executions> </executions>
<configuration> <configuration>
<repository>dockerhub.linkfern.com/b2c/shopapi</repository> <repository>dockerhub.linkfern.com/b2c/shopapi</repository>
<tag>V1.1.7.5</tag> <tag>V1.1.7.6</tag>
<buildArgs> <buildArgs>
<JAR_FILE>${project.build.finalName}.jar</JAR_FILE> <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
</buildArgs> </buildArgs>
......
...@@ -208,7 +208,7 @@ public class OrderController { ...@@ -208,7 +208,7 @@ public class OrderController {
public String paySuccess(String sSalesOrderID,BigDecimal nPayAmount, String sOpenID, String sTransTraceNO, String sOutTradeNO,String PayTypeID) { public String paySuccess(String sSalesOrderID,BigDecimal nPayAmount, String sOpenID, String sTransTraceNO, String sOutTradeNO,String PayTypeID) {
try { try {
String[] ary = sOutTradeNO.split("_", 2); String[] ary = sOutTradeNO.split("_", 2);
List<Map<String, Object>> result = orderService.paySuccess(ary[0], nPayAmount, sOpenID, sTransTraceNO, new Date(),PayTypeID); List<Map<String, Object>> result = orderService.paySuccess(ary[0], nPayAmount, sOpenID, sTransTraceNO, new Date(),PayTypeID,"");
return Rjx.jsonOk().set("list", result).toJson(); return Rjx.jsonOk().set("list", result).toJson();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
...@@ -14,6 +14,7 @@ import org.json.XML; ...@@ -14,6 +14,7 @@ import org.json.XML;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
...@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.egolm.common.DateUtil; import com.egolm.common.DateUtil;
import com.egolm.common.FileUtil;
import com.egolm.common.GsonUtil; import com.egolm.common.GsonUtil;
import com.egolm.common.HttpsUtil; import com.egolm.common.HttpsUtil;
import com.egolm.common.StringUtil; import com.egolm.common.StringUtil;
...@@ -44,6 +46,9 @@ public class PayNotifyController { ...@@ -44,6 +46,9 @@ public class PayNotifyController {
@Autowired @Autowired
private OrderService orderService; private OrderService orderService;
@Value("${pay.callback.path}")
private String callBackFilePath;
@ApiIgnore @ApiIgnore
@ApiOperation("支付回调通知接口") @ApiOperation("支付回调通知接口")
@RequestMapping(value = "/callback", method = RequestMethod.POST) @RequestMapping(value = "/callback", method = RequestMethod.POST)
...@@ -62,9 +67,9 @@ public class PayNotifyController { ...@@ -62,9 +67,9 @@ public class PayNotifyController {
String xmlMsg = StringUtil.inputStream2String(in); String xmlMsg = StringUtil.inputStream2String(in);
logger.info("从egoPay中接收到支付回调信息 {}",xmlMsg); logger.info("从egoPay中接收到支付回调信息 {}",xmlMsg);
postData = (WxPayResponse) xs.fromXML(xmlMsg); postData = (WxPayResponse) xs.fromXML(xmlMsg);
List<Map<String, Object>> returnMap = orderService.payCallback(postData); List<Map<String, Object>> returnMap = orderService.payCallback(postData,xmlMsg,callBackFilePath);
logger.info("从egoPay中接收到支付信息结果 {}",GsonUtil.toJson(returnMap)); logger.info("从egoPay中接收到支付信息结果 {}",GsonUtil.toJson(returnMap));
} catch (Exception e) { } catch (Exception e) {
...@@ -79,7 +84,7 @@ public class PayNotifyController { ...@@ -79,7 +84,7 @@ public class PayNotifyController {
public Object mepayCallback(@RequestBody String req, HttpServletResponse resp) { public Object mepayCallback(@RequestBody String req, HttpServletResponse resp) {
logger.info("从egoPay中接收到微企付回调通知接口: "+req); logger.info("从egoPay中接收到微企付回调通知接口: "+req);
List<Map<String, Object>> returnMap = orderService.mePayCallback(req); List<Map<String, Object>> returnMap = orderService.mePayCallback(req,callBackFilePath);
logger.info("从egoPay中接收处理微企付回调信息结果 {}",GsonUtil.toJson(returnMap)); logger.info("从egoPay中接收处理微企付回调信息结果 {}",GsonUtil.toJson(returnMap));
return "success"; return "success";
...@@ -90,7 +95,7 @@ public class PayNotifyController { ...@@ -90,7 +95,7 @@ public class PayNotifyController {
@RequestMapping(value = "/mybankCallback", method = RequestMethod.POST) @RequestMapping(value = "/mybankCallback", method = RequestMethod.POST)
public Object mybankCallback(@RequestBody String req, HttpServletResponse resp) { public Object mybankCallback(@RequestBody String req, HttpServletResponse resp) {
logger.info("从egoPay中接收网商银行回调通知接口 {}",req); logger.info("从egoPay中接收网商银行回调通知接口 {}",req);
List<Map<String, Object>> returnMap = orderService.myBankCallback(req); List<Map<String, Object>> returnMap = orderService.myBankCallback(req,callBackFilePath);
logger.info("处理从egoPay中接收网商银行回调通知结果 {}",GsonUtil.toJson(returnMap)); logger.info("处理从egoPay中接收网商银行回调通知结果 {}",GsonUtil.toJson(returnMap));
return "success"; return "success";
......
...@@ -22,7 +22,7 @@ public interface OrderService { ...@@ -22,7 +22,7 @@ public interface OrderService {
public String getOrderDetail(String salesOrderId,String agentID); public String getOrderDetail(String salesOrderId,String agentID);
public List<Map<String, Object>> paySuccess(String sOutTradeNO, BigDecimal nPayAmount, String sOpenID, String sTransTraceNO, Date dPayDateTime,String PayTypeID); public List<Map<String, Object>> paySuccess(String sOutTradeNO, BigDecimal nPayAmount, String sOpenID, String sTransTraceNO, Date dPayDateTime,String PayTypeID,String callBackFilePath);
public String getSubOrderDetail(String subOrderID,String agentID); public String getSubOrderDetail(String subOrderID,String agentID);
...@@ -46,9 +46,9 @@ public interface OrderService { ...@@ -46,9 +46,9 @@ public interface OrderService {
public List<Map<String, Object>> createSettlePay(String settleNO, String payTypeID,String payType,String payAmount,String payCardNO) ; public List<Map<String, Object>> createSettlePay(String settleNO, String payTypeID,String payType,String payAmount,String payCardNO) ;
public List<Map<String, Object>> payCallback(WxPayResponse postData); public List<Map<String, Object>> payCallback(WxPayResponse postData,String xmlMsg,String callBackFilePath);
public List<Map<String, Object>> mePayCallback(String req); public List<Map<String, Object>> mePayCallback(String req,String callBackFilePath);
public List<Map<String, Object>> myBankCallback(String req); public List<Map<String, Object>> myBankCallback(String req,String callBackFilePath);
} }
...@@ -7,7 +7,7 @@ server.session.timeout=90000 ...@@ -7,7 +7,7 @@ server.session.timeout=90000
server.tomcat.uri-encoding=utf-8 server.tomcat.uri-encoding=utf-8
server.shop.name=shop server.shop.name=shop
server.isSign=true server.isSign=false
server.md5key=90f49d4bb0216c10816c7dec6bf28c89 server.md5key=90f49d4bb0216c10816c7dec6bf28c89
spring.http.multipart.maxFileSize=5MB spring.http.multipart.maxFileSize=5MB
...@@ -58,7 +58,7 @@ spring.datasource.filters=stat,log4j ...@@ -58,7 +58,7 @@ spring.datasource.filters=stat,log4j
#读库 #读库
readonly.datasource.username=ERP readonly.datasource.username=ERP
readonly.datasource.password=qiyang@2013 readonly.datasource.password=qiyang@2013
readonly.datasource.url=jdbc:sqlserver://10.10.0.22:1433;instanceName=SQLSERVER;DatabaseName=SHOPDB;allowMultiQueries=true readonly.datasource.url=jdbc:sqlserver://10.10.0.22:1433;instanceName=SQLSERVER;DatabaseName=B2BDB;allowMultiQueries=true
readonly.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver readonly.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
#验证连接的有效性 #验证连接的有效性
readonly.datasource.test-while-idle=true readonly.datasource.test-while-idle=true
...@@ -138,3 +138,4 @@ qiyewx.msg.redirect.appid=wxa573a87e45933b56 ...@@ -138,3 +138,4 @@ qiyewx.msg.redirect.appid=wxa573a87e45933b56
qiyewx.msg.timer=1/5 * * * * ? qiyewx.msg.timer=1/5 * * * * ?
pay.callback.path=D:/data/erp/callback/
\ No newline at end of file
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<el-divider content-position="left">V1.1.7.6 2024-5-6</el-divider>
<p class="title">1.支付回调失败状态为99的,刚写文件,需求 #16796</p>
<el-divider content-position="left">V1.1.7.5 2024-4-23</el-divider> <el-divider content-position="left">V1.1.7.5 2024-4-23</el-divider>
<p class="title">1.增加接口签名验证及开关</p> <p class="title">1.增加接口签名验证及开关</p>
<p class="title">2.需求 #16555、需求 #16563 需求 #16542,需求 #16595</p> <p class="title">2.需求 #16555、需求 #16563 需求 #16542,需求 #16595</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment