发布网友 发布时间:2022-05-03 18:16
共2个回答
热心网友 时间:2022-05-03 19:46
底层代码_compile_select中有这样一句:if (count($this->ar_like) > 0) { if (count($this->ar_where) > 0) { $sql .= "\nAND "; } $sql .= implode("\n", $this->ar_like); }还是底层类有问题。能想到的就只有这样$this->db->select()->from('test')->where("id in (1,2) or ip like '%$str1%' or ip like '%$str2%'")->get()->result_array();