作者 何书鹏
1 个管道 的构建 失败 耗费 2 秒

优化可看查询代码

... ... @@ -204,7 +204,7 @@ class Index extends Api
$findinsetn[] = "find_in_set({$pid},user_ids) = 0";
}
$where .= $where ? ' and ' : '';
$where .= "(".implode(' or ',$findinset)." and lookdata = '1') or (lookdata = '0') or (".implode(' or ',$findinsetn)." and lookdata = '2')";
$where .= "((".implode(' or ',$findinset)." and lookdata = '1') or (lookdata = '0') or (".implode(' or ',$findinsetn)." and lookdata = '2'))";
}
// 附近
$juli = 0;
... ...