Skip to content

Commit

Permalink
版本 1.0.5.6-SNAPSHOT => 1.0.5.7-SNAPSHOT
Browse files Browse the repository at this point in the history
 Unionpay app 通知与订单不匹配 的验证修改
  • Loading branch information
limaofeng committed Jan 29, 2016
1 parent 155b4f3 commit 801bfe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pay/JavaSource/org/jfantasy/pay/product/Unionpay.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.jfantasy.framework.httpclient.Response;
import org.jfantasy.framework.spring.SpringContextUtil;
import org.jfantasy.framework.util.common.DateUtil;
import org.jfantasy.framework.util.common.StringUtil;
import org.jfantasy.framework.util.jackson.JSON;
import org.jfantasy.framework.util.web.WebUtil;
import org.jfantasy.pay.bean.PayConfig;
Expand Down Expand Up @@ -161,7 +162,7 @@ public Payment payNotify(Payment payment, String result) throws PayException {
}
if (isAppNotify) {
Map<String, String> payresult = WebUtil.parseQuery(data.get("data"), true);
if (!payment.getTradeNo().equals(payresult.get("tn"))) {
if (!StringUtil.nullValue(payresult.get("tn")).equals(payment.getTradeNo())) {
throw new PayException("通知与订单不匹配");
}
payment.setStatus("success".equals(payresult.get("pay_result")) ? Payment.Status.success : Payment.Status.failure);
Expand Down

0 comments on commit 801bfe0

Please sign in to comment.