修改支付宝配置
This commit is contained in:
parent
6527c56283
commit
18e4f0a99d
@ -38,7 +38,6 @@ import io.swagger.annotations.ApiOperation;
|
|||||||
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.core.env.Environment;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
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;
|
||||||
@ -59,8 +58,6 @@ import java.util.Set;
|
|||||||
@Api(value = "支付宝支付接口", tags = "支付宝支付接口")
|
@Api(value = "支付宝支付接口", tags = "支付宝支付接口")
|
||||||
public class AlipayPaymentController {
|
public class AlipayPaymentController {
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private Environment environment;
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IXhpcRechargeOrderService iXhpcRechargeOrderService;
|
private IXhpcRechargeOrderService iXhpcRechargeOrderService;
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -188,7 +185,8 @@ public class AlipayPaymentController {
|
|||||||
if(xhpcRechargeOrder!=null){
|
if(xhpcRechargeOrder!=null){
|
||||||
XhpcSettingConfig xhpcSettingConfig = xhpcCommonPayment.getXhpcSettingConfigTenantId(UserTypeUtil.OPERATION_ALI_PAY_TYPE, xhpcRechargeOrder.getTenantId());
|
XhpcSettingConfig xhpcSettingConfig = xhpcCommonPayment.getXhpcSettingConfigTenantId(UserTypeUtil.OPERATION_ALI_PAY_TYPE, xhpcRechargeOrder.getTenantId());
|
||||||
if(xhpcSettingConfig !=null){
|
if(xhpcSettingConfig !=null){
|
||||||
String publiccertpath = getAlipayPublicKey(environment.getProperty("PUBLICCERTPATH"));
|
//String publiccertpath = getAlipayPublicKey(environment.getProperty("PUBLICCERTPATH"));
|
||||||
|
String publiccertpath = getAlipayPublicKey(xhpcSettingConfig.getZfbAlipayCertPublicKeyRsa());
|
||||||
logger.info("<<<<<<<<<<<<支付宝公钥证书>>>>>>>>>"+publiccertpath);
|
logger.info("<<<<<<<<<<<<支付宝公钥证书>>>>>>>>>"+publiccertpath);
|
||||||
// 调用SDK验证签名
|
// 调用SDK验证签名
|
||||||
boolean signVerified = AlipaySignature.rsaCheckV1(params, publiccertpath, "utf-8", "RSA2");
|
boolean signVerified = AlipaySignature.rsaCheckV1(params, publiccertpath, "utf-8", "RSA2");
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
<result column="zfb_private_key" property="zfbPrivateKey"/>
|
<result column="zfb_private_key" property="zfbPrivateKey"/>
|
||||||
<result column="zfb_callback_url" property="zfbCallbackUrl"/>
|
<result column="zfb_callback_url" property="zfbCallbackUrl"/>
|
||||||
<result column="zfb_app_cert_public_key" property="zfbAppCertPublicKey"/>
|
<result column="zfb_app_cert_public_key" property="zfbAppCertPublicKey"/>
|
||||||
<result column="zfb_app_cert_public_key" property="zfbAlipayCertPublicKeyRsa"/>
|
<result column="zfb_alipay_cert_public_key_rsa" property="zfbAlipayCertPublicKeyRsa"/>
|
||||||
<result column="zfb_alipay_root_cert" property="zfbAlipayRootCert"/>
|
<result column="zfb_alipay_root_cert" property="zfbAlipayRootCert"/>
|
||||||
<result column="zhb_server_url" property="zhbServerUrl"/>
|
<result column="zhb_server_url" property="zhbServerUrl"/>
|
||||||
<result column="status" property="status"/>
|
<result column="status" property="status"/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user