|
|
@ -480,6 +480,14 @@ class PaymentMerchantController extends ThinkController
|
|
|
|
$weixinMerchants = $paymentMerchantService->getMerchantsByWay(PaymentMerchantService::WAY_WEIXIN);
|
|
|
|
$weixinMerchants = $paymentMerchantService->getMerchantsByWay(PaymentMerchantService::WAY_WEIXIN);
|
|
|
|
$expressMerchants = $paymentMerchantService->getMerchantsByWay(PaymentMerchantService::WAY_EXPRESS);
|
|
|
|
$expressMerchants = $paymentMerchantService->getMerchantsByWay(PaymentMerchantService::WAY_EXPRESS);
|
|
|
|
$companies = $companyService->getCompanies(null, 'id,company_name');
|
|
|
|
$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('aliMerchants', $aliMerchants);
|
|
|
|
$this->assign('weixinMerchants', $weixinMerchants);
|
|
|
|
$this->assign('weixinMerchants', $weixinMerchants);
|
|
|
|
$this->assign('expressMerchants', $expressMerchants);
|
|
|
|
$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 ['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']);
|
|
|
|
$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('aliMerchants', $aliMerchants);
|
|
|
|
$this->assign('weixinMerchants', $weixinMerchants);
|
|
|
|
$this->assign('weixinMerchants', $weixinMerchants);
|
|
|
|
$this->assign('expressMerchants', $expressMerchants);
|
|
|
|
$this->assign('expressMerchants', $expressMerchants);
|
|
|
|