银联支付-云闪付
This commit is contained in:
parent
b8398ac1d1
commit
17734e7a3d
@ -16,6 +16,11 @@ public enum PaymentMethodEnum {
|
||||
* 支付宝
|
||||
*/
|
||||
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,
|
||||
//银联支付设置
|
||||
UNION_PAYMENT,
|
||||
|
||||
UNIONPAY_PAYMENT,
|
||||
//热词设置
|
||||
HOT_WORDS
|
||||
}
|
||||
|
@ -2,10 +2,12 @@ package cn.lili.controller.other;
|
||||
|
||||
import cn.lili.common.enums.ResultUtil;
|
||||
import cn.lili.common.vo.ResultMessage;
|
||||
import cn.lili.modules.payment.service.CorporateBankService;
|
||||
import cn.lili.modules.search.service.EsGoodsIndexService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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.RestController;
|
||||
|
||||
@ -23,6 +25,14 @@ import java.util.Map;
|
||||
@RequestMapping("/manager/other/elasticsearch")
|
||||
public class ElasticsearchController {
|
||||
|
||||
@Autowired
|
||||
private CorporateBankService corporateBankService;
|
||||
|
||||
@PostMapping
|
||||
public ResultMessage<String> corporateBankInit(int i) {
|
||||
corporateBankService.init(i);
|
||||
return ResultUtil.success();
|
||||
}
|
||||
@Autowired
|
||||
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.payment.AlipayPaymentSetting;
|
||||
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.dto.PaymentSupportForm;
|
||||
import cn.lili.modules.system.entity.enums.SettingEnum;
|
||||
@ -171,6 +172,10 @@ public class SettingManagerController {
|
||||
return setting == null ?
|
||||
ResultUtil.data(new AlipayPaymentSetting()) :
|
||||
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:
|
||||
return setting == null ?
|
||||
ResultUtil.data(new WechatConnectSetting()) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user