mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-09-06 23:08:27 +08:00
版本升级,日志部分放至父类声明
This commit is contained in:
@@ -13,8 +13,6 @@ import com.egzosn.pay.common.http.UriVariables;
|
||||
import com.egzosn.pay.common.util.MatrixToImageWriter;
|
||||
import com.egzosn.pay.common.util.sign.SignUtils;
|
||||
import com.egzosn.pay.common.util.str.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.DateFormat;
|
||||
@@ -29,7 +27,6 @@ import java.util.*;
|
||||
* date 2017-2-22 20:09
|
||||
*/
|
||||
public class AliPayService extends BasePayService<AliPayConfigStorage> {
|
||||
protected final Log log = LogFactory.getLog(AliPayService.class);
|
||||
|
||||
/**
|
||||
* 正式测试环境
|
||||
@@ -74,7 +71,7 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
|
||||
|
||||
|
||||
if (params.get("sign") == null) {
|
||||
log.debug("支付宝支付异常:params:" + params);
|
||||
LOG.debug("支付宝支付异常:params:" + params);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -298,7 +295,7 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
|
||||
JSONObject result = getHttpRequestTemplate().postForObject(getReqUrl() + "?" + UriVariables.getMapToParameters(orderInfo), null, JSONObject.class);
|
||||
JSONObject response = result.getJSONObject("alipay_trade_pay_response");
|
||||
if (!"10000".equals(response.getString("code"))){
|
||||
log.info("收款失败");
|
||||
LOG.info("收款失败");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -520,6 +517,7 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
|
||||
return getHttpRequestTemplate().postForObject(getReqUrl() + "?" + UriVariables.getMapToParameters(parameters), null, JSONObject.class);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取biz_content。请求参数的集合 不包含下载账单
|
||||
* @param tradeNo 支付平台订单号
|
||||
|
||||
@@ -13,8 +13,6 @@ import com.egzosn.pay.common.http.HttpConfigStorage;
|
||||
import com.egzosn.pay.common.http.UriVariables;
|
||||
import com.egzosn.pay.common.util.sign.SignUtils;
|
||||
import com.egzosn.pay.common.util.str.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.math.BigDecimal;
|
||||
@@ -24,16 +22,17 @@ import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 支付宝支付通知
|
||||
* 支付宝支付服务
|
||||
* @author egan
|
||||
*
|
||||
* email egzosn@gmail.com
|
||||
* date 2016-5-18 14:09:01
|
||||
*
|
||||
* 旧版本支付服务,2015年之前的支付方式,之后版本请看新类
|
||||
* @see com.egzosn.pay.ali.api.AliPayService
|
||||
*/
|
||||
@Deprecated
|
||||
public class AliPayService extends BasePayService<AliPayConfigStorage> {
|
||||
protected final Log LOG = LogFactory.getLog(AliPayService.class);
|
||||
|
||||
|
||||
|
||||
private static final String HTTPS_REQ_URL = "https://mapi.alipay.com/gateway.do";
|
||||
|
||||
Reference in New Issue
Block a user