refactor(channel): 优化渠道页面并添加宝塔 WAF防火墙配置选项
- 在渠道表单页面添加宝塔 WAF 防火墙配置选项,包括宝塔 IP 地址、接口密钥和防火墙网站域名 - 注释掉渠道列表页面的联系信息列 - 在路由文件中添加空行,提高代码可读性
This commit is contained in:
parent
7cea59579a
commit
74b0763e2c
@ -124,8 +124,47 @@
|
|||||||
<span class="help-block">不懂的话默认不支持即可</span>
|
<span class="help-block">不懂的话默认不支持即可</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</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}-->
|
||||||
|
|
||||||
<div class="layui-row layui-col-space15">
|
<!-- <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">
|
||||||
|
|
||||||
<div class="layui-col-xs12">
|
<div class="layui-col-xs12">
|
||||||
<label class="relative block">
|
<label class="relative block">
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
|
<label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
|
||||||
</th>-->
|
</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>-->
|
<!--<th class='text-left nowrap' width="">秘钥</th>-->
|
||||||
<th class='text-left nowrap' width="">接口</th>
|
<th class='text-left nowrap' width="">接口</th>
|
||||||
|
@ -26,6 +26,8 @@ if (str_contains($version, '.')) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$pathInfo = request()->pathinfo();
|
$pathInfo = request()->pathinfo();
|
||||||
if ($pathInfo == null) {
|
if ($pathInfo == null) {
|
||||||
$json = [
|
$json = [
|
||||||
@ -56,6 +58,7 @@ if($version!='api'){
|
|||||||
if(!str_contains($pathInfo, 'api.')){
|
if(!str_contains($pathInfo, 'api.')){
|
||||||
app()->route->rule(':controller/:function', 'api' . '.:controller/:function');
|
app()->route->rule(':controller/:function', 'api' . '.:controller/:function');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user