|
...
|
...
|
@@ -171,11 +171,13 @@ class ServersIpController extends BaseController |
|
|
|
$serversIpModel = new ServersIpModel();
|
|
|
|
$this->map['status'] = 0;
|
|
|
|
$list = $serversIpModel->list($this->map);
|
|
|
|
if(!empty($list)){
|
|
|
|
foreach ($list as $v){
|
|
|
|
$position = strpos($v['domain'], '.');
|
|
|
|
$result = substr($v['domain'], 0, $position);
|
|
|
|
$data[] = ['记录类型'=>'A','主机记录'=>$result,'解析线路'=>'默认','记录值'=>$v['ip'],'MAX优先级'=>'','TTL值'=>600,'状态(暂停/启用)'=>'启用','备注'=>$info['server_name']];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|