~自定义字段名~ 有2处,改成你自己的字段名,例如 ~likeids~
3、打开 /include/taglib/sql.lib.php 找到
$sql = str_replace($conditions[0][$key], "'".addslashes($refObj->Fields[$value])."'", $sql);改成
if(is_numeric(str_replace(',','',$refObj->Fields[$value]))) { $sql = str_replace($conditions[0][$key], addslashes($refObj->Fields[$value]), $sql); } else { $sql = str_replace($conditions[0][$key], "'".addslashes($refObj->Fields[$value])."'", $sql); }