去除<?>
This commit is contained in:
@@ -22,7 +22,7 @@ public class PayManager {
|
||||
* @param paramsDto 参数
|
||||
* @return 结果
|
||||
*/
|
||||
public static Map<String, Object> jsapiPay(CzgPayBaseReq<?> paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
public static Map<String, Object> jsapiPay(CzgPayBaseReq paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
if (SystemConstants.PayType.WECHAT.equals(paramsDto.getPayType())) {
|
||||
return WechatPayManager.jsapiPay(null, paramsDto, merchantDTO);
|
||||
} else if (SystemConstants.PayType.ALIPAY.equals(paramsDto.getPayType())) {
|
||||
@@ -38,7 +38,7 @@ public class PayManager {
|
||||
* @param paramsDto 参数
|
||||
* @return 结果
|
||||
*/
|
||||
public static Map<String, Object> barPay(CzgPayBaseReq<String> paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
public static Map<String, Object> barPay(CzgPayBaseReq paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
if (SystemConstants.PayType.WECHAT.equals(paramsDto.getPayType())) {
|
||||
return WechatPayManager.barPay(null, paramsDto, merchantDTO);
|
||||
} else if (SystemConstants.PayType.ALIPAY.equals(paramsDto.getPayType())) {
|
||||
|
||||
@@ -33,7 +33,7 @@ public class AlipayIsvPayManager {
|
||||
* @param configDto 配置
|
||||
* @param paramsDto 参数
|
||||
*/
|
||||
public static Map<String, Object> jsapiPay(AlipayConfigDto configDto, CzgPayBaseReq<?> paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
public static Map<String, Object> jsapiPay(AlipayConfigDto configDto, CzgPayBaseReq paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
try {
|
||||
AlipayClient.setApiClient(configDto);
|
||||
AlipayTradeApi api = new AlipayTradeApi();
|
||||
@@ -71,7 +71,7 @@ public class AlipayIsvPayManager {
|
||||
* @param configDto 配置
|
||||
* @param paramsDto 参数
|
||||
*/
|
||||
public static Map<String, Object> barPay(AlipayConfigDto configDto, CzgPayBaseReq<String> paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
public static Map<String, Object> barPay(AlipayConfigDto configDto, CzgPayBaseReq paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
try {
|
||||
AlipayClient.setApiClient(configDto);
|
||||
|
||||
@@ -88,7 +88,7 @@ public class AlipayIsvPayManager {
|
||||
data.setScene("bar_code");
|
||||
// 设置产品码
|
||||
data.setProductCode("FACE_TO_FACE_PAYMENT");
|
||||
data.setAuthCode(paramsDto.getData());
|
||||
data.setAuthCode(paramsDto.getAuthCode());
|
||||
// AlipayTradeCreateResponseModel responseModel = api.create(data);
|
||||
|
||||
return new JSONObject();
|
||||
|
||||
@@ -46,7 +46,7 @@ public class WechatPayManager {
|
||||
* @param configDto 配置
|
||||
* @param paramsDto 参数
|
||||
*/
|
||||
public static Map<String, Object> jsapiPay(WechatPayConfigDto configDto, CzgPayBaseReq<?> paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
public static Map<String, Object> jsapiPay(WechatPayConfigDto configDto, CzgPayBaseReq paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
if (configDto == null) {
|
||||
configDto = WechatPayConfigDto.getDefaultConfig();
|
||||
}
|
||||
@@ -106,7 +106,7 @@ public class WechatPayManager {
|
||||
* @param configDto 配置
|
||||
* @param paramsDto 参数
|
||||
*/
|
||||
public static Map<String, Object> barPay(WechatPayConfigDto configDto, CzgPayBaseReq<String> paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
public static Map<String, Object> barPay(WechatPayConfigDto configDto, CzgPayBaseReq paramsDto, NativeMerchantDTO merchantDTO) {
|
||||
try {
|
||||
if (configDto == null) {
|
||||
configDto = WechatPayConfigDto.getDefaultConfig();
|
||||
@@ -136,8 +136,8 @@ public class WechatPayManager {
|
||||
payMap.put("total_fee", paramsDto.getAmount());
|
||||
addElementIfNotEmpty(xml, "spbill_create_ip", paramsDto.getClientIp());
|
||||
payMap.put("spbill_create_ip", paramsDto.getClientIp());
|
||||
addElementIfNotEmpty(xml, "auth_code", paramsDto.getData());
|
||||
payMap.put("auth_code", paramsDto.getData());
|
||||
addElementIfNotEmpty(xml, "auth_code", paramsDto.getAuthCode());
|
||||
payMap.put("auth_code", paramsDto.getAuthCode());
|
||||
|
||||
if (StrUtil.isNotBlank(paramsDto.getExtParam())) {
|
||||
addElementIfNotEmpty(xml, "attach", paramsDto.getExtParam());
|
||||
|
||||
Reference in New Issue
Block a user