refactor(channel): 优化渠道页面并添加宝塔 WAF防火墙配置选项

- 在渠道表单页面添加宝塔 WAF 防火墙配置选项,包括宝塔 IP 地址、接口密钥和防火墙网站域名
- 注释掉渠道列表页面的联系信息列
- 在路由文件中添加空行,提高代码可读性
This commit is contained in:
mzeros 2024-12-07 12:45:53 +08:00
parent 7cea59579a
commit 74b0763e2c
3 changed files with 45 additions and 3 deletions

View File

@ -124,6 +124,45 @@
<span class="help-block">不懂的话默认不支持即可</span>
</label>
</div>
<!-- <label class="layui-form-item margin-top-20 block relative">-->
<!-- <span class="color-green margin-right-10">对接文档信息</span>-->
<!-- <div>-->
<!-- {foreach ['1'=>'对接信息','2'=>'文档'] as $k=>$v}-->
<!-- <label class="think-radio">-->
<!-- {if sysconf('settingBtWafStatus') eq $k}-->
<!-- <input checked type="radio" id="settingBtWafStatus" name="settingBtWafStatus" value="{$k}" lay-ignore> {$v}-->
<!-- {else}-->
<!-- <input type="radio" id="settingBtWafStatus2" name="settingBtWafStatus" value="{$k}" lay-ignore> {$v}-->
<!-- {/if}-->
<!-- </label>-->
<!-- {/foreach}-->
<!-- </div>-->
<!-- <span class="color-desc">如果是宝塔部署后端并支持Nginx WAF防火墙请配置</span>-->
<!-- </label>-->
<!-- <div class="layui-form-item" id="btWaf_info" style="display: none;">-->
<!-- <label class="layui-form-item relative block" >-->
<!-- <span class="color-black font-w7">宝塔ip地址</span>-->
<!-- <input class="layui-input" placeholder="请输入宝塔ip地址" name="BtApi_ip" value="{:sysconf('BtApi_ip')}"/>-->
<!-- <span class="help-block">请填写宝塔ip地址请不要随意修改</span>-->
<!-- </label>-->
<!-- <label class="layui-form-item relative block" >-->
<!-- <span class="color-black font-w7">宝塔接口密钥</span>-->
<!-- <input class="layui-input" placeholder="请输入宝塔接口密钥" name="BtApi_password" value="{:sysconf('BtApi_password')}"/>-->
<!-- <span class="help-block">请填写宝塔接口密钥,请不要随意修改</span>-->
<!-- </label>-->
<!-- <label class="layui-form-item relative block" >-->
<!-- <span class="color-black font-w7">宝塔防火墙网站域名</span>-->
<!-- <input class="layui-input" placeholder="宝塔防火墙网站域名" name="BtWaf_domain" value="{:sysconf('BtWaf_domain')}"/>-->
<!-- <span class="help-block">请填写宝塔防火墙网站域名,请不要随意修改</span>-->
<!-- </label>-->
<!-- </div>-->
<div class="layui-row layui-col-space15">

View File

@ -18,7 +18,7 @@
<label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
</th>-->
<th class='text-left nowrap' width="">渠道信息</th>
<!-- <th class='text-left nowrap' width="">联系信息</th>-->
<!-- <th class='text-left nowrap' width="">联系信息</th>-->
<!--<th class='text-left nowrap' width="">秘钥</th>-->
<th class='text-left nowrap' width="">接口</th>

View File

@ -26,6 +26,8 @@ if (str_contains($version, '.')) {
$pathInfo = request()->pathinfo();
if ($pathInfo == null) {
$json = [
@ -56,6 +58,7 @@ if($version!='api'){
if(!str_contains($pathInfo, 'api.')){
app()->route->rule(':controller/:function', 'api' . '.:controller/:function');
}
}