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

bug修改

... ... @@ -190,10 +190,11 @@ class Index extends Api
$findinset[] = "find_in_set({$pid},user_ids)";
}
$where .= $where ? ' and ' : '';
$where .= '('.implode(' or ',$findinset).')';
$where .= "(".implode(' or ',$findinset)." or user_ids = '')";
}else{
// 未设置哪些人及其下级可查看,默认所有人可以查看
$where .= " or user_ids = ''";
}
// 未设置哪些人及其下级可查看,默认所有人可以查看
$where .= " or user_ids = ''";
}
// 附近
$distance = '1';
... ... @@ -306,10 +307,11 @@ class Index extends Api
$findinset[] = "find_in_set({$pid},j.user_ids)";
}
$where .= $where ? ' and ' : '';
$where .= '('.implode(' or ',$findinset).')';
$where .= "(".implode(' or ',$findinset)." or user_ids = '')";
}else{
// 未设置哪些人及其下级可查看,默认所有人可以查看
$where .= " or user_ids = ''";
}
// 未设置哪些人及其下级可查看,默认所有人可以查看
$where .= " or j.user_ids = ''";
}
$data = Job::alias('j')
... ...