Merge pull request '优化' (#376) from hotfix/remove_promote_package into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/376
master
廖金灵 4 years ago
commit 91e70828af

@ -480,6 +480,14 @@ class PaymentMerchantController extends ThinkController
$weixinMerchants = $paymentMerchantService->getMerchantsByWay(PaymentMerchantService::WAY_WEIXIN);
$expressMerchants = $paymentMerchantService->getMerchantsByWay(PaymentMerchantService::WAY_EXPRESS);
$companies = $companyService->getCompanies(null, 'id,company_name');
$defaultExpress = $paymentMerchantService->getDefault(PaymentMerchantService::WAY_EXPRESS);
$defaultAlipay = $paymentMerchantService->getDefault(PaymentMerchantService::WAY_ALIPAY);
$defaultWeixin = $paymentMerchantService->getDefault(PaymentMerchantService::WAY_WEIXIN);
$this->assign('defaultExpress', $defaultExpress ? $defaultExpress['name'] . '(' . $defaultExpress['account'] . ')' : '无');
$this->assign('defaultAlipay', $defaultAlipay ? $defaultAlipay['name'] . '(' . $defaultAlipay['account'] . ')' : '无');
$this->assign('defaultWeixin', $defaultWeixin ? $defaultWeixin['name'] . '(' . $defaultWeixin['account'] . ')' : '无');
$this->assign('aliMerchants', $aliMerchants);
$this->assign('weixinMerchants', $weixinMerchants);
$this->assign('expressMerchants', $expressMerchants);
@ -579,6 +587,14 @@ class PaymentMerchantController extends ThinkController
$rule ['start_time'] = $rule ['start_time'] == 0 ? '' : date('Y-m-d', $rule ['start_time']);
$rule ['end_time'] = $rule ['end_time'] == PaymentRuleService::FOREVER_TIME ? '' : date('Y-m-d', $rule ['end_time']);
$defaultExpress = $paymentMerchantService->getDefault(PaymentMerchantService::WAY_EXPRESS);
$defaultAlipay = $paymentMerchantService->getDefault(PaymentMerchantService::WAY_ALIPAY);
$defaultWeixin = $paymentMerchantService->getDefault(PaymentMerchantService::WAY_WEIXIN);
$this->assign('defaultExpress', $defaultExpress ? $defaultExpress['name'] . '(' . $defaultExpress['account'] . ')' : '无');
$this->assign('defaultAlipay', $defaultAlipay ? $defaultAlipay['name'] . '(' . $defaultAlipay['account'] . ')' : '无');
$this->assign('defaultWeixin', $defaultWeixin ? $defaultWeixin['name'] . '(' . $defaultWeixin['account'] . ')' : '无');
$this->assign('aliMerchants', $aliMerchants);
$this->assign('weixinMerchants', $weixinMerchants);
$this->assign('expressMerchants', $expressMerchants);

@ -151,7 +151,7 @@
<td class="l"><i class="mustmark">*</i>支付宝支付配置:</td>
<td class="r">
<select name="alipay_merchant_id" id="alipay-merchant-select" class="select_gallery" style="width: 350px;">
<option value="0">跟随系统默认商户</option>
<option value="0">跟随系统默认商户<?=$defaultAlipay?></option>
<?php foreach($aliMerchants as $merchant):?>
<option value="<?=$merchant['id']?>"><?=$merchant['name']?>(<?=$merchant['account']?>)</option>
<?php endforeach;?>
@ -162,7 +162,7 @@
<td class="l"><i class="mustmark">*</i>微信支付配置:</td>
<td class="r">
<select name="weixin_merchant_id" id="weixin-merchant-select" class="select_gallery" style="width: 350px;">
<option value="0">跟随系统默认商户</option>
<option value="0">跟随系统默认商户<?=$defaultWeixin?></option>
<?php foreach($weixinMerchants as $merchant):?>
<option value="<?=$merchant['id']?>"><?=$merchant['name']?>(<?=$merchant['account']?>)</option>
<?php endforeach;?>
@ -173,7 +173,7 @@
<td class="l"><i class="mustmark">*</i>快捷支付配置:</td>
<td class="r">
<select name="express_merchant_id" id="express-merchant-select" class="select_gallery" style="width: 350px;">
<option value="0">跟随系统默认商户</option>
<option value="0">跟随系统默认商户<?=$defaultExpress?></option>
<?php foreach($expressMerchants as $merchant):?>
<option value="<?=$merchant['id']?>"><?=$merchant['name']?>(<?=$merchant['account']?>)</option>
<?php endforeach;?>

@ -151,7 +151,7 @@
<td class="l"><i class="mustmark">*</i>支付宝支付配置:</td>
<td class="r">
<select name="alipay_merchant_id" id="alipay-merchant-select" class="select_gallery" style="width: 350px;">
<option value="0">跟随系统默认商户</option>
<option value="0">跟随系统默认商户<?=$defaultAlipay?></option>
<?php foreach($aliMerchants as $merchant):?>
<option value="<?=$merchant['id']?>" <?php if($record['alipay_merchant_id']==$merchant['id']):?>selected<?php endif;?>><?=$merchant['name']?>(<?=$merchant['account']?>)</option>
<?php endforeach;?>
@ -162,7 +162,7 @@
<td class="l"><i class="mustmark">*</i>微信支付配置:</td>
<td class="r">
<select name="weixin_merchant_id" id="weixin-merchant-select" class="select_gallery" style="width: 350px;">
<option value="0">跟随系统默认商户</option>
<option value="0">跟随系统默认商户<?=$defaultWeixin?></option>
<?php foreach($weixinMerchants as $merchant):?>
<option value="<?=$merchant['id']?>" <?php if($record['weixin_merchant_id']==$merchant['id']):?>selected<?php endif;?>><?=$merchant['name']?>(<?=$merchant['account']?>)</option>
<?php endforeach;?>
@ -173,7 +173,7 @@
<td class="l"><i class="mustmark">*</i>快捷支付配置:</td>
<td class="r">
<select name="express_merchant_id" id="express-merchant-select" class="select_gallery" style="width: 350px;">
<option value="0">跟随系统默认商户</option>
<option value="0">跟随系统默认商户<?=$defaultExpress?></option>
<?php foreach($expressMerchants as $merchant):?>
<option value="<?=$merchant['id']?>" <?php if($record['express_merchant_id']==$merchant['id']):?>selected<?php endif;?>><?=$merchant['name']?>(<?=$merchant['account']?>)</option>
<?php endforeach;?>

Loading…
Cancel
Save