合并微信商户服务号+小程序支付通道

This commit is contained in:
Anyon 2020-12-12 19:29:29 +08:00
parent 3a56b189d8
commit 388187cbe3
2 changed files with 8 additions and 9 deletions

View File

@ -13,20 +13,19 @@ use think\admin\Service;
*/
abstract class PaymentService extends Service
{
// 微信支付类型
const PAYMENT_WECHAT_GZH = 'wechat_gzh';
const PAYMENT_WECHAT_XCX = 'wechat_xcx';
// 汇聚支付类型
// 汇聚支付通道
const PAYMENT_JOINPAY_GZH = 'joinpay_gzh';
const PAYMENT_JOINPAY_XCX = 'joinpay_xcx';
// 微信支付通道
const PAYMENT_WECHAT_JSAPI = 'wechat_jsapi';
// 支付通道描述
const TYPES = [
PaymentService::PAYMENT_WECHAT_XCX => '微信小程序支付',
PaymentService::PAYMENT_WECHAT_GZH => '微信服务号支付',
PaymentService::PAYMENT_JOINPAY_XCX => '汇聚小程序支付',
PaymentService::PAYMENT_JOINPAY_GZH => '汇聚服务号支付',
PaymentService::PAYMENT_WECHAT_JSAPI => '微信商户支付',
PaymentService::PAYMENT_JOINPAY_XCX => '汇聚小程序支付',
PaymentService::PAYMENT_JOINPAY_GZH => '汇聚服务号支付',
];
/**

View File

@ -53,7 +53,7 @@
{block name='script'}
<script>
$('input[data-payment-type]').on('change', function () {
var type = $('input[data-payment-type]:checked').val();
var type = $('input[data-payment-type]:checked').val() || '';
if (type.indexOf('wechat') > -1) {
$('[data-payment-type="wechat"]').removeClass('layui-hide')
$('[data-payment-type="joinpay"]').addClass('layui-hide');