银联支付-云闪付
This commit is contained in:
parent
b8398ac1d1
commit
17734e7a3d
@ -16,6 +16,11 @@ public enum PaymentMethodEnum {
|
|||||||
* 支付宝
|
* 支付宝
|
||||||
*/
|
*/
|
||||||
ALIPAY("aliPayPlugin", "支付宝"),
|
ALIPAY("aliPayPlugin", "支付宝"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银联-云闪付
|
||||||
|
*/
|
||||||
|
UNIONPAY("unionPayPlugin", "银联-云闪付"),
|
||||||
/**
|
/**
|
||||||
* 余额支付
|
* 余额支付
|
||||||
*/
|
*/
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
package cn.lili.modules.system.entity.dto.payment;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
/**
|
||||||
|
* 银联-云闪付支付设置
|
||||||
|
*
|
||||||
|
* @author Bulbasaur
|
||||||
|
* @since 2023-02-17
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class UnionPaymentSetting {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商户号
|
||||||
|
*/
|
||||||
|
private String unionPayMachId;
|
||||||
|
/**
|
||||||
|
* 密钥
|
||||||
|
*/
|
||||||
|
private String unionPayKey;
|
||||||
|
/**
|
||||||
|
* 请求地址
|
||||||
|
*/
|
||||||
|
private String unionPayServerUrl;
|
||||||
|
/**
|
||||||
|
* 交易请求地址
|
||||||
|
*/
|
||||||
|
private String unionPayDomain;
|
||||||
|
/**
|
||||||
|
* 应用ID
|
||||||
|
*/
|
||||||
|
private String unionPayAppId;
|
||||||
|
}
|
@ -46,8 +46,7 @@ public enum SettingEnum {
|
|||||||
//微信支付设置
|
//微信支付设置
|
||||||
WECHAT_PAYMENT,
|
WECHAT_PAYMENT,
|
||||||
//银联支付设置
|
//银联支付设置
|
||||||
UNION_PAYMENT,
|
UNIONPAY_PAYMENT,
|
||||||
|
|
||||||
//热词设置
|
//热词设置
|
||||||
HOT_WORDS
|
HOT_WORDS
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,12 @@ package cn.lili.controller.other;
|
|||||||
|
|
||||||
import cn.lili.common.enums.ResultUtil;
|
import cn.lili.common.enums.ResultUtil;
|
||||||
import cn.lili.common.vo.ResultMessage;
|
import cn.lili.common.vo.ResultMessage;
|
||||||
|
import cn.lili.modules.payment.service.CorporateBankService;
|
||||||
import cn.lili.modules.search.service.EsGoodsIndexService;
|
import cn.lili.modules.search.service.EsGoodsIndexService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@ -23,6 +25,14 @@ import java.util.Map;
|
|||||||
@RequestMapping("/manager/other/elasticsearch")
|
@RequestMapping("/manager/other/elasticsearch")
|
||||||
public class ElasticsearchController {
|
public class ElasticsearchController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CorporateBankService corporateBankService;
|
||||||
|
|
||||||
|
@PostMapping
|
||||||
|
public ResultMessage<String> corporateBankInit(int i) {
|
||||||
|
corporateBankService.init(i);
|
||||||
|
return ResultUtil.success();
|
||||||
|
}
|
||||||
@Autowired
|
@Autowired
|
||||||
private EsGoodsIndexService esGoodsIndexService;
|
private EsGoodsIndexService esGoodsIndexService;
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ import cn.lili.modules.system.entity.dto.connect.QQConnectSetting;
|
|||||||
import cn.lili.modules.system.entity.dto.connect.WechatConnectSetting;
|
import cn.lili.modules.system.entity.dto.connect.WechatConnectSetting;
|
||||||
import cn.lili.modules.system.entity.dto.payment.AlipayPaymentSetting;
|
import cn.lili.modules.system.entity.dto.payment.AlipayPaymentSetting;
|
||||||
import cn.lili.modules.system.entity.dto.payment.PaymentSupportSetting;
|
import cn.lili.modules.system.entity.dto.payment.PaymentSupportSetting;
|
||||||
|
import cn.lili.modules.system.entity.dto.payment.UnionPaymentSetting;
|
||||||
import cn.lili.modules.system.entity.dto.payment.WechatPaymentSetting;
|
import cn.lili.modules.system.entity.dto.payment.WechatPaymentSetting;
|
||||||
import cn.lili.modules.system.entity.dto.payment.dto.PaymentSupportForm;
|
import cn.lili.modules.system.entity.dto.payment.dto.PaymentSupportForm;
|
||||||
import cn.lili.modules.system.entity.enums.SettingEnum;
|
import cn.lili.modules.system.entity.enums.SettingEnum;
|
||||||
@ -171,6 +172,10 @@ public class SettingManagerController {
|
|||||||
return setting == null ?
|
return setting == null ?
|
||||||
ResultUtil.data(new AlipayPaymentSetting()) :
|
ResultUtil.data(new AlipayPaymentSetting()) :
|
||||||
ResultUtil.data(JSONUtil.toBean(setting.getSettingValue(), AlipayPaymentSetting.class));
|
ResultUtil.data(JSONUtil.toBean(setting.getSettingValue(), AlipayPaymentSetting.class));
|
||||||
|
case UNIONPAY_PAYMENT:
|
||||||
|
return setting == null ?
|
||||||
|
ResultUtil.data(new UnionPaymentSetting()) :
|
||||||
|
ResultUtil.data(JSONUtil.toBean(setting.getSettingValue(), UnionPaymentSetting.class));
|
||||||
case WECHAT_CONNECT:
|
case WECHAT_CONNECT:
|
||||||
return setting == null ?
|
return setting == null ?
|
||||||
ResultUtil.data(new WechatConnectSetting()) :
|
ResultUtil.data(new WechatConnectSetting()) :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user