<?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 $P2vse) { goto auaCN; pzc37: return $P2vse->perform(); goto dpsBt; auaCN: $P2vse->pageTitle('支付宝（旧）'); goto kf8zs; BkCMY: $P2vse->formClass('wide'); goto pzc37; tpjVc: $P2vse->text('payAlipaySellerId', '卖家ID(SellerId)')->help('如 seller@example.com'); goto cerg8; aFGnj: $P2vse->text('payAlipayPartnerId', '卖家ID(PartnerId)')->help('如 2085364735263489'); goto tpjVc; FeGw1: $P2vse->display('_empty_', '')->content('<span class="ub-text-danger">如果您还没开通支付宝收款，请 <a href="https://tecmz.com/article/payapply" target="_blank">联系我们</a> 协助申请</span>'); goto BkCMY; kf8zs: $P2vse->switch('payAlipayOn', '开启支付宝付款'); goto aFGnj; cerg8: $P2vse->text('payAlipayKey', '安全Key')->help('如 pdehgmdjeubnghtyddktjm174hdj'); goto FeGw1; dpsBt: } public function wechat(AdminConfigBuilder $P2vse) { goto KM6HF; hh8W6: $P2vse->display('_empty_', '')->content('<span class="ub-text-danger">如果您还没开通微信商户收款，请 <a href="https://tecmz.com/article/payapply" target="_blank">联系我们</a> 协助申请</span>'); goto Hbllu; WNGfL: $P2vse->text('payWechatMerchantId', '商家ID(MerchantId)')->help('如 136XXXXXXX'); goto m6bas; KM6HF: $P2vse->pageTitle('微信支付'); goto eeasM; eeasM: $P2vse->switch('payWechatOn', '开启微信付款'); goto nfpFt; rOgJa: return $P2vse->perform(); goto gW72O; nfpFt: $P2vse->text('payWechatAppId', 'AppId')->help('如 需要和微信授权登录AppId相同'); goto WNGfL; m6bas: $P2vse->text('payWechatKey', 'API密钥(Key)')->help('长度32位，在微信支付平台中的 账户中心 > API安全 > API密钥 中获取。'); goto hh8W6; Hbllu: $P2vse->formClass('wide'); goto rOgJa; gW72O: } public function alipayWeb(AdminConfigBuilder $P2vse) { goto wVWbN; wVWbN: $P2vse->pageTitle('支付宝'); goto qNsSR; z0NlR: $P2vse->display('_empty_', '')->content('<span class="ub-text-danger">如果您还没开通支付宝收款，请 <a href="https://tecmz.com/article/payapply" target="_blank">联系我们</a> 协助申请</span>'); goto WWNDV; WWNDV: $P2vse->formClass('wide'); goto k8Djy; qNsSR: $P2vse->switch('payAlipayWebOn', '开启'); goto WO60a; veELY: $P2vse->textarea('payAlipayWebRSAPrivateKey', '应用私钥RSA2(SHA256)')->help('复制 -----BEGIN RSA PRIVATE KEY----- 和 -----END RSA PRIVATE KEY----- 中间的部分'); goto z0NlR; WO60a: $P2vse->text('payAlipayWebAppId', 'AppId')->help('如 '); goto KycQD; KycQD: $P2vse->textarea('payAlipayWebAliPublicKey', '支付宝公钥')->help('如 '); goto veELY; k8Djy: return $P2vse->perform(); goto fcmYs; fcmYs: } public function index(AdminConfigBuilder $P2vse) { goto TMRG_; mKN_F: return $P2vse->perform(); goto vZTh3; g9Bpv: $P2vse->switch('payQuickPreferEnable', '优先扫码快捷支付')->help('在PC适配了扫码快捷支付的页面，优先启用扫码快捷支付，仅支持微信支付、支付宝支付'); goto OL9ZP; j1W2r: $P2vse->switch('payMemberMoneyOn', '开启余额支付'); goto g9Bpv; TMRG_: $P2vse->pageTitle('支付功能设置'); goto j1W2r; OL9ZP: $P2vse->formClass('wide'); goto mKN_F; vZTh3: } public function provider(AdminConfigBuilder $P2vse, $zO6V5) { goto SZbNb; RIRI0: $P2vse->pageTitle($tDnAb->title()); goto N6JY6; SZbNb: $tDnAb = PayCenterProvider::get($zO6V5); goto N6lrn; E3goe: return $P2vse->perform(); goto Fw6Bp; N6JY6: $tDnAb->adminConfig($P2vse); goto E3goe; N6lrn: BizException::throwsIfEmpty('支付方式未找到', $tDnAb); goto RIRI0; Fw6Bp: } }