diff --git a/app/Models/Cloudflare/API/ZoneModel.php b/app/Models/Cloudflare/API/ZoneModel.php index cfa7f3c..b9e9043 100644 --- a/app/Models/Cloudflare/API/ZoneModel.php +++ b/app/Models/Cloudflare/API/ZoneModel.php @@ -73,11 +73,10 @@ class ZoneModel extends Model //Index 검색용 public function setIndexWordFilter(string $word) { - if (isIPAddress_CommonHelper($this->_viewDatas['fieldDatas']['content'], $this->_viewDatas['fieldDatas']['type'])) { + $this->like('domain', $word, 'both'); //befor , after , both + if (isIPAddress_CommonHelper($word)) { $ids = $this->_model->table('cloudflarerecord')->select('zone_uid')->where('content', $word, 'both')->findAll(); $this->wherein('uid', $ids); - } else { - $this->like('domain', $word, 'both'); //befor , after , both } } public function setIndexDateFilter($start, $end)