💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### isRepeat **检查对象是否重复** **参数** \* @新增检查重复无需传入checkId \* @修改检查重复需要排除修改对象id ~~~ function isRepeat($searchArr, $checkId) { $countsql = "select count(id) as num from " . $this->tbl_name . " c"; $this->isBlankSearch=true; $countsql = $this->createQuery ( $countsql, $searchArr ); if ($checkId != '') { $countsql .= " and c.id!=" . $checkId; } //echo $countsql; $num = $this->queryCount ( $countsql ); // echo $num; return ($num == 0 ? false : true); } ~~~