<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\SmsTecmz\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Layout\AdminConfigBuilder; use Module\Vendor\Provider\SmsTemplate\SmsTemplateProvider; use Module\Vendor\Sms\SmsUtil; use Module\Vendor\Tecmz\TecmzUtil; class ConfigController extends Controller { public function setting(AdminConfigBuilder $lZifj) { goto u6iy0; rJ0ty: $lZifj->switch('SmsTecmz_Enable', '开启短信发送')->help('<div>访问 <a href="' . TecmzUtil::url() . '" target="_blank">' . TecmzUtil::url() . '</a> 申请</div>'); goto LgPiL; f_X3J: $lZifj->text('SmsTecmz_AppSecret', 'AppSecret'); goto NpYLY; LgPiL: $lZifj->text('SmsTecmz_AppId', 'AppId'); goto f_X3J; NpYLY: foreach (SmsTemplateProvider::map() as $L1N0l => $K1Wao) { $lZifj->text('SmsTecmz_Template_' . $L1N0l, $K1Wao['title'] . '模板ID')->help($K1Wao['description'] . '，示例：<code>' . $K1Wao['example'] . '</code>'); } goto MfvWu; MfvWu: $lZifj->formClass('wide'); goto wf2II; wf2II: return $lZifj->perform(); goto dGD3V; u6iy0: $lZifj->pageTitle('魔众短信'); goto rJ0ty; dGD3V: } }