<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\PayCenter\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Layout\AdminConfigBuilder; use ModStart\Core\Exception\BizException; use Module\PayCenter\Provider\PayCenterProvider; class ConfigController extends Controller { public static $PermitMethodMap = array('provider' => '@PayCenterConfig'); public function alipay(AdminConfigBuilder $lZifj) { goto eEdER; OgKki: return $lZifj->perform(); goto JAZuk; eEdER: $lZifj->pageTitle('支付宝（旧）'); goto iKKg9; Q_SgV: $lZifj->formClass('wide'); goto OgKki; L_DFX: $lZifj->text('payAlipayPartnerId', '卖家ID(PartnerId)')->help('如 2085364735263489'); goto MNPMt; Mb2s2: $lZifj->display('_empty_', '')->content('<span class="ub-text-danger">如果您还没开通支付宝收款，请 <a href="https://tecmz.com/article/payapply" target="_blank">联系我们</a> 协助申请</span>'); goto Q_SgV; hWPI5: $lZifj->text('payAlipayKey', '安全Key')->help('如 pdehgmdjeubnghtyddktjm174hdj'); goto Mb2s2; MNPMt: $lZifj->text('payAlipaySellerId', '卖家ID(SellerId)')->help('如 seller@example.com'); goto hWPI5; iKKg9: $lZifj->switch('payAlipayOn', '开启支付宝付款'); goto L_DFX; JAZuk: } public function wechat(AdminConfigBuilder $lZifj) { goto On4b1; bX9yr: $lZifj->formClass('wide'); goto eEDJY; Ja2I1: $lZifj->display('_empty_', '')->content('<span class="ub-text-danger">如果您还没开通微信商户收款，请 <a href="https://tecmz.com/article/payapply" target="_blank">联系我们</a> 协助申请</span>'); goto bX9yr; FLXXJ: $lZifj->text('payWechatAppId', 'AppId')->help('如 需要和微信授权登录AppId相同'); goto NtjyG; yoV2O: $lZifj->switch('payWechatOn', '开启微信付款'); goto FLXXJ; On4b1: $lZifj->pageTitle('微信支付'); goto yoV2O; NtjyG: $lZifj->text('payWechatMerchantId', '商家ID(MerchantId)')->help('如 136XXXXXXX'); goto QY_FJ; eEDJY: return $lZifj->perform(); goto Ej1HH; QY_FJ: $lZifj->text('payWechatKey', 'API密钥(Key)')->help('长度32位，在微信支付平台中的 账户中心 > API安全 > API密钥 中获取。'); goto Ja2I1; Ej1HH: } public function alipayWeb(AdminConfigBuilder $lZifj) { goto TxY8_; r7DZ1: $lZifj->textarea('payAlipayWebRSAPrivateKey', '应用私钥RSA2(SHA256)')->help('复制 -----BEGIN RSA PRIVATE KEY----- 和 -----END RSA PRIVATE KEY----- 中间的部分'); goto efGnE; fKjwj: $lZifj->textarea('payAlipayWebAliPublicKey', '支付宝公钥')->help('如 '); goto r7DZ1; JjHhy: return $lZifj->perform(); goto f75Q4; LWjOq: $lZifj->formClass('wide'); goto JjHhy; NEEk4: $lZifj->text('payAlipayWebAppId', 'AppId')->help('如 '); goto fKjwj; TxY8_: $lZifj->pageTitle('支付宝'); goto iXNxU; efGnE: $lZifj->display('_empty_', '')->content('<span class="ub-text-danger">如果您还没开通支付宝收款，请 <a href="https://tecmz.com/article/payapply" target="_blank">联系我们</a> 协助申请</span>'); goto LWjOq; iXNxU: $lZifj->switch('payAlipayWebOn', '开启'); goto NEEk4; f75Q4: } public function index(AdminConfigBuilder $lZifj) { goto phN9a; lJSN0: $lZifj->formClass('wide'); goto ogxZ2; WSW3G: $lZifj->switch('payMemberMoneyOn', '开启余额支付'); goto qNw0W; qNw0W: $lZifj->switch('payQuickPreferEnable', '优先扫码快捷支付')->help('在PC适配了扫码快捷支付的页面，优先启用扫码快捷支付，仅支持微信支付、支付宝支付'); goto lJSN0; phN9a: $lZifj->pageTitle('支付功能设置'); goto WSW3G; ogxZ2: return $lZifj->perform(); goto jDduA; jDduA: } public function provider(AdminConfigBuilder $lZifj, $L1N0l) { goto eO3wW; leP0B: BizException::throwsIfEmpty('支付方式未找到', $oMd7I); goto Zv0iM; nDvLZ: $oMd7I->adminConfig($lZifj); goto nYd8_; Zv0iM: $lZifj->pageTitle($oMd7I->title()); goto nDvLZ; nYd8_: return $lZifj->perform(); goto Dhapi; eO3wW: $oMd7I = PayCenterProvider::get($L1N0l); goto leP0B; Dhapi: } }