<?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 $P2vse) { goto eKtIJ; Ey7ZR: $P2vse->text('SmsTecmz_AppSecret', 'AppSecret'); goto bZicu; bZicu: foreach (SmsTemplateProvider::map() as $zO6V5 => $Yee6d) { $P2vse->text('SmsTecmz_Template_' . $zO6V5, $Yee6d['title'] . '模板ID')->help($Yee6d['description'] . '，示例：<code>' . $Yee6d['example'] . '</code>'); } goto N8lQJ; jWo4D: $P2vse->text('SmsTecmz_AppId', 'AppId'); goto Ey7ZR; eKtIJ: $P2vse->pageTitle('魔众短信'); goto fHKUo; N8lQJ: $P2vse->formClass('wide'); goto W5nvQ; W5nvQ: return $P2vse->perform(); goto RkOBH; fHKUo: $P2vse->switch('SmsTecmz_Enable', '开启短信发送')->help('<div>访问 <a href="' . TecmzUtil::url() . '" target="_blank">' . TecmzUtil::url() . '</a> 申请</div>'); goto jWo4D; RkOBH: } }