forked from angelo/java-retail-app
## 后台支付配置显示添加京东方式返回;
This commit is contained in:
parent
1aabd75a4a
commit
ecf0d6c61e
|
@ -14,11 +14,7 @@ import org.springframework.data.redis.core.RedisTemplate;
|
|||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @Description: 在线支付配置
|
||||
* @Author: jiang chao
|
||||
* @Time: 2023/3/23 16:15
|
||||
* @Classname: OnlinePayConfigController
|
||||
* @PackageName: com.hzs.third.pay.controller.manage
|
||||
* 在线支付配置
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/manage/online-config")
|
||||
|
@ -40,6 +36,16 @@ public class OnlinePayConfigController {
|
|||
OnlinePayConfigVO payConfigVO = new OnlinePayConfigVO();
|
||||
|
||||
// 各支付方式: true=显示,false=隐藏
|
||||
// 京东收银台(H5)
|
||||
String pay5 = String.format(PayConfigConstants.PAY_CONFIG_5, pkCountry);
|
||||
if (redisTemplate.hasKey(pay5)) {
|
||||
payConfigVO.setPay5((Boolean) redisTemplate.opsForValue().get(pay5));
|
||||
}
|
||||
// 京东收银台(PC)
|
||||
String pay6 = String.format(PayConfigConstants.PAY_CONFIG_6, pkCountry);
|
||||
if (redisTemplate.hasKey(pay6)) {
|
||||
payConfigVO.setPay6((Boolean) redisTemplate.opsForValue().get(pay6));
|
||||
}
|
||||
|
||||
// 新汇付PC微信扫码支付
|
||||
String pay81 = String.format(PayConfigConstants.PAY_CONFIG_81, pkCountry);
|
||||
|
|
Loading…
Reference in New Issue