|
|
@@ -74,7 +74,8 @@ public class LeYunFuController {
|
|
|
|
|
|
try {
|
|
|
|
|
|
- if (m != null && "SUCCESS".equals(m.get("return_code"))) {//支付成功
|
|
|
+ if (m != null && "SUCCESS".equals(m.get("return_code"))
|
|
|
+ && !"NOT_PAY".equals(m.get("payment_status"))) {//支付成功
|
|
|
String attach = m.get("attach");
|
|
|
JSONObject attachJson = new JSONObject(attach);
|
|
|
|
|
|
@@ -84,7 +85,8 @@ public class LeYunFuController {
|
|
|
|
|
|
checkTemp = wxpayTempMapper.queryWxpayTemp(checkTemp);
|
|
|
|
|
|
- if (checkTemp != null && "WAIT_BUYER_PAY".equals(checkTemp.getResultCode())) {
|
|
|
+ if (checkTemp != null && "NOT_PAY".equals(checkTemp.getResultCode())) {
|
|
|
+
|
|
|
|
|
|
WxpayTemp wxpayTemp = new WxpayTemp();
|
|
|
wxpayTemp.setOutTradeNo(m.get("out_trade_no"));
|
|
|
@@ -209,7 +211,7 @@ public class LeYunFuController {
|
|
|
wxpayTemp.setTotalAmount(BigDecimal.valueOf(total / 100.0));
|
|
|
wxpayTemp.setOutTradeNo(out_trade_no);
|
|
|
wxpayTemp.setTypeFlag(AppConstant.Aliapi.BUY);
|
|
|
- wxpayTemp.setResultCode("WAIT_BUYER_PAY");
|
|
|
+ wxpayTemp.setResultCode("NOT_PAY");
|
|
|
wxpayTemp.setCreateUser("lyf");
|
|
|
wxpayTempMapper.insertSelective(wxpayTemp);
|
|
|
|
|
|
@@ -266,7 +268,7 @@ public class LeYunFuController {
|
|
|
|
|
|
WxpayTemp param = new WxpayTemp();
|
|
|
param.setCreateUser("lyf");
|
|
|
- param.setResultCode("WAIT_BUYER_PAY");
|
|
|
+ param.setResultCode("NOT_PAY");
|
|
|
List<WxpayTemp> wxpayTempList = wxpayTempMapper.queryAllWxpayTemp(param);
|
|
|
|
|
|
for (WxpayTemp wxpayTemp : wxpayTempList) {
|