|
...
|
...
|
@@ -49,9 +49,11 @@ class ServersIpLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function saveServersIp(){
|
|
|
|
//验证域名是否唯一
|
|
|
|
$info = $this->model->read(['domain'=>$this->param['domain']]);
|
|
|
|
if($info !== false){
|
|
|
|
$this->fail('当前初始域名已存在');
|
|
|
|
if(!isset($this->param['id'])){
|
|
|
|
$info = $this->model->read(['domain'=>$this->param['domain']]);
|
|
|
|
if($info !== false){
|
|
|
|
$this->fail('当前初始域名已存在');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
$id = $this->param['id'];
|
...
|
...
|
|