<?php
 namespace Module\ConfigSite\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Layout\AdminConfigBuilder; use Module\Vendor\SoftApi\SoftApiUtil; class SoftApiController extends Controller { public function asr(AdminConfigBuilder $builder) { $builder->pageTitle('语音识别'); $builder->switch('softApiAsrEnable', '启用') ->help('<div>访问 <a href="' . SoftApiUtil::url() . '" target="_blank">' . SoftApiUtil::url() . '</a> 申请</div>'); $builder->text('softApiAsrAppId', 'AppId'); $builder->text('softApiAsrAppSecret', 'AppSecret'); return $builder->perform(); } public function audioConvert(AdminConfigBuilder $builder) { $builder->pageTitle('语音转换'); $builder->switch('softApiAudioConvertEnable', '启用') ->help('<div>访问 <a href="' . SoftApiUtil::url() . '" target="_blank">' . SoftApiUtil::url() . '</a> 申请</div>'); $builder->text('softApiAudioConvertAppId', 'AppId'); $builder->text('softApiAudioConvertAppSecret', 'AppSecret'); return $builder->perform(); } public function express(AdminConfigBuilder $builder) { $builder->pageTitle('快递查询'); $builder->switch('softApiExpressEnable', '启用') ->help('<div>访问 <a href="' . SoftApiUtil::url() . '" target="_blank">' . SoftApiUtil::url() . '</a> 申请</div>'); $builder->text('softApiExpressAppId', 'AppId'); $builder->text('softApiExpressAppSecret', 'AppSecret'); return $builder->perform(); } public function captcha(AdminConfigBuilder $builder) { $builder->pageTitle('安全验证码'); $builder->switch('softApiCaptchaEnable', '启用') ->help('<div>访问 <a href="' . SoftApiUtil::url() . '" target="_blank">' . SoftApiUtil::url() . '</a> 申请</div>'); $builder->text('softApiCaptchaAppId', 'AppId'); $builder->text('softApiCaptchaAppSecret', 'AppSecret'); return $builder->perform(); } }