|
|
@@ -198,6 +198,21 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="portlet-body">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="is_subscribe" class="col-md-3 control-label">订阅</label>
|
|
|
+ <div class="col-md-8">
|
|
|
+ <div class="mt-radio-inline">
|
|
|
+ <label class="mt-radio">
|
|
|
+ <input type="radio" name="is_subscribe" value="1" {{$node->is_subscribe ? 'checked' : ''}}> 允许
|
|
|
+ <span></span>
|
|
|
+ </label>
|
|
|
+ <label class="mt-radio">
|
|
|
+ <input type="radio" name="is_subscribe" value="0" {{!$node->is_subscribe ? 'checked' : ''}}> 不允许
|
|
|
+ <span></span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="form-group">
|
|
|
<label for="compatible" class="col-md-3 control-label">兼容SS</label>
|
|
|
<div class="col-md-8">
|
|
|
@@ -278,7 +293,7 @@
|
|
|
<div class="form-group">
|
|
|
<label for="monitor_url" class="col-md-3 control-label">监控地址</label>
|
|
|
<div class="col-md-8">
|
|
|
- <input type="text" class="form-control right" name="monitor_url" value="{{$node->monitor_url}}" id="monitor_url" placeholder="">
|
|
|
+ <input type="text" class="form-control right" name="monitor_url" value="{{$node->monitor_url}}" id="monitor_url" placeholder="节点实时监控地址">
|
|
|
<span class="help-block"> 例如:http://us1.xxx.com/monitor.php </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -338,6 +353,7 @@
|
|
|
var bandwidth = $('#bandwidth').val();
|
|
|
var traffic = $('#traffic').val();
|
|
|
var monitor_url = $('#monitor_url').val();
|
|
|
+ var is_subscribe = $("input:radio[name='is_subscribe']:checked").val();
|
|
|
var compatible = $('#compatible').val();
|
|
|
var single = $('#single').val();
|
|
|
var single_force = $('#single_force').val();
|
|
|
@@ -353,7 +369,7 @@
|
|
|
type: "POST",
|
|
|
url: "{{url('admin/editNode')}}",
|
|
|
async: false,
|
|
|
- data: {_token:_token, id:id, name: name, labels:labels, group_id:group_id, country_code:country_code, server:server, ip:ip, ipv6:ipv6, desc:desc, method:method, traffic_rate:traffic_rate, protocol:protocol, protocol_param:protocol_param, obfs:obfs, obfs_param:obfs_param, bandwidth:bandwidth, traffic:traffic, monitor_url:monitor_url, compatible:compatible, single:single, single_force:single_force, single_port:single_port, single_passwd:single_passwd, single_method:single_method, single_protocol:single_protocol, single_obfs:single_obfs, sort:sort, status:status},
|
|
|
+ data: {_token:_token, id:id, name: name, labels:labels, group_id:group_id, country_code:country_code, server:server, ip:ip, ipv6:ipv6, desc:desc, method:method, traffic_rate:traffic_rate, protocol:protocol, protocol_param:protocol_param, obfs:obfs, obfs_param:obfs_param, bandwidth:bandwidth, traffic:traffic, monitor_url:monitor_url, is_subscribe:is_subscribe, compatible:compatible, single:single, single_force:single_force, single_port:single_port, single_passwd:single_passwd, single_method:single_method, single_protocol:single_protocol, single_obfs:single_obfs, sort:sort, status:status},
|
|
|
dataType: 'json',
|
|
|
success: function (ret) {
|
|
|
layer.msg(ret.message, {time:1000}, function() {
|