<?php
 namespace TechSoft\Laravel\App\Admin; use TechSoft\Laravel\Admin\Cms\ConfigCms; use TechSoft\Laravel\Admin\Cms\Field\FieldImage; use TechSoft\Laravel\Admin\Cms\Field\FieldSwitch; use TechSoft\Laravel\Admin\Cms\Field\FieldText; use TechSoft\Laravel\Admin\Support\AdminCheckController; class AppDownloadController extends AdminCheckController { public function setting(ConfigCms $configCms) { return $configCms->execute($this, [ 'group' => 'setting', 'pageTitle' => '下载页面', 'fields' => [ 'appDownloadTitle' => ['type' => FieldText::class, 'title' => '页面标题', 'desc' => ''], 'appDownloadBackground' => ['type' => FieldImage::class, 'title' => '页面背景', 'desc' => ''], 'appDownloadAndroidEnable' => ['type' => FieldSwitch::class, 'title' => '启用安卓下载', 'desc' => ''], 'appDownloadAndroidUrl' => ['type' => FieldText::class, 'title' => '安卓下载链接', 'desc' => ''], 'appDownloadAndroidVersion' => ['type' => FieldText::class, 'title' => '安卓下载版本', 'desc' => ''], 'appDownloadIosEnable' => ['type' => FieldSwitch::class, 'title' => '启用iOS下载', 'desc' => ''], 'appDownloadIosUrl' => ['type' => FieldText::class, 'title' => 'iOS下载链接', 'desc' => ''], 'appDownloadIosVersion' => ['type' => FieldText::class, 'title' => 'iOS下载版本', 'desc' => ''], 'appDownloadWindowsEnable' => ['type' => FieldSwitch::class, 'title' => '启用Widnows客户端下载', 'desc' => ''], 'appDownloadWindowsUrl' => ['type' => FieldText::class, 'title' => 'Widnows客户端下载链接', 'desc' => ''], 'appDownloadWindowsVersion' => ['type' => FieldText::class, 'title' => 'Widnows客户端下载版本', 'desc' => ''], 'appDownloadMacEnable' => ['type' => FieldSwitch::class, 'title' => '启用Mac客户端下载', 'desc' => ''], 'appDownloadMacUrl' => ['type' => FieldText::class, 'title' => 'Mac客户端下载链接', 'desc' => ''], 'appDownloadMacVersion' => ['type' => FieldText::class, 'title' => 'Mac客户端下载版本', 'desc' => ''], ] ]); } }