mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2024-11-16 03:32:28 +08:00
update
This commit is contained in:
parent
8bdf58651c
commit
0d1d7d3c67
|
@ -21,7 +21,9 @@ class OptimizeService
|
|||
private $del_num = 0;
|
||||
|
||||
public static function get_license($api, $key){
|
||||
if($api == 1){
|
||||
if($api == 2){
|
||||
throw new Exception('当前接口暂不支持');
|
||||
}elseif($api == 1){
|
||||
$url = 'https://api.hostmonit.com/get_license?license='.$key;
|
||||
}else{
|
||||
$url = 'https://monitor.gacjie.cn/api/client/get_account_integral?license='.$key;
|
||||
|
@ -40,6 +42,8 @@ class OptimizeService
|
|||
public function get_ip_address($cdn_type = 1, $ip_type = 'v4'){
|
||||
$api = config_get('optimize_ip_api', 0);
|
||||
if($api == 1){
|
||||
$url = 'https://api.345673.xyz/get_data';
|
||||
}elseif($api == 1){
|
||||
$url = 'https://api.hostmonit.com/get_optimization_ip';
|
||||
}else{
|
||||
$url = 'https://monitor.gacjie.cn/api/client/get_ip_address';
|
||||
|
|
|
@ -49,7 +49,6 @@ class baidu implements DnsInterface {
|
|||
|
||||
//获取解析记录列表
|
||||
public function getDomainRecords($PageNumber=1, $PageSize=20, $KeyWord = null, $SubDomain = null, $Value = null, $Type = null, $Line = null, $Status = null){
|
||||
$marker = cookie('baidu_record_marker');
|
||||
$query = ['rr' => $KeyWord];
|
||||
if(!isNullOrEmpty(($SubDomain))){
|
||||
$param['rr'] = $SubDomain;
|
||||
|
|
|
@ -210,7 +210,8 @@ class dnspod implements DnsInterface {
|
|||
|
||||
private function processLineList(&$list, $line_list, $parent){
|
||||
foreach($line_list as $row){
|
||||
if(!isNullOrEmpty($row['LineId']) && $row['Useful'] && !isset($list[$row['LineId']])){
|
||||
if(isNullOrEmpty($row['LineId'])) $row['LineId'] = 'N.'.$row['LineName'];
|
||||
if($row['Useful'] && !isset($list[$row['LineId']])){
|
||||
$list[$row['LineId']] = ['name'=>$row['LineName'], 'parent'=>$parent];
|
||||
if($row['SubGroup']){
|
||||
$this->processLineList($list, $row['SubGroup'], $row['LineId']);
|
||||
|
|
|
@ -372,7 +372,7 @@ function changeLine(obj, elem){
|
|||
if($(obj).find("option:selected").text() == '子集线路(非必填)') return;
|
||||
var tempLine = recordLine.filter((x) => x.parent == line)
|
||||
if(tempLine.length > 0){
|
||||
var option = '<option value="'+line+'">子集线路(非必填)</option>';
|
||||
var option = line.substr(0,2) == 'N.' ? '' : '<option value="'+line+'">子集线路(非必填)</option>';
|
||||
$.each(tempLine, function(index, item){
|
||||
option += '<option value="'+item.id+'">'+item.name+'</option>';
|
||||
})
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="panel panel-warning">
|
||||
<div class="panel-heading"><h3 class="panel-title">使用说明</h3></div>
|
||||
<div class="panel-body">
|
||||
<p><li>数据接口:<a href="https://monitor.gacjie.cn/" target="_blank" rel="noreferrer">GacJieMonitor</a> 数据接口支持CloudFlare、CloudFront、Gcore;<a href="https://hostmonit.com/" target="_blank" rel="noreferrer">HostMonit</a> 只支持CloudFlare。</li></p>
|
||||
<p><li>数据接口:<a href="https://monitor.gacjie.cn/" target="_blank" rel="noreferrer">GacJieMonitor</a> 数据接口支持CloudFlare、CloudFront、Gcore;<a href="https://hostmonit.com/" target="_blank" rel="noreferrer">HostMonit</a> 只支持CloudFlare;<a href="https://345673.xyz/" target="_blank" rel="noreferrer">345673.xyz</a> 只支持CloudFlare。</li></p>
|
||||
<p><li>接口密钥:默认o1zrmHAF为免费KEY可永久免费使用。</li></p>
|
||||
<p><li>计划任务:将以下命令添加到计划任务,周期设置为15分钟以上</li></p>
|
||||
<p><code>cd {:app()->getRootPath()} && php think opiptask</code></p>
|
||||
|
@ -27,7 +27,7 @@
|
|||
<form onsubmit="return saveSetting(this)" method="post" class="form-horizontal" role="form">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">数据接口</label>
|
||||
<div class="col-sm-9"><select class="form-control" name="optimize_ip_api" default="{:config_get('optimize_ip_api')}"><option value="0">GacJieMonitor</option><option value="1">HostMonit</option></select></div>
|
||||
<div class="col-sm-9"><select class="form-control" name="optimize_ip_api" default="{:config_get('optimize_ip_api')}"><option value="0">GacJieMonitor</option><option value="1">HostMonit</option><option value="2">345673.xyz</option></select></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">接口密钥</label>
|
||||
|
|
Loading…
Reference in New Issue
Block a user