Refactor IP History

This commit is contained in:
xiaomlove
2025-10-14 14:54:44 +07:00
parent 0f172a94be
commit ba8715a3f9
34 changed files with 494 additions and 131 deletions

View File

@@ -101,10 +101,10 @@ class ApiQueryBuilder
{
$includeCounts = explode(',', $this->request->query(self::PARAM_NAME_INCLUDE_COUNTS, ''));
$valid = array_intersect($this->allowedIncludeCounts, $includeCounts);
do_log(sprintf(
"includeCounts: %s, allow: %s, valid: %s",
json_encode($includeCounts), json_encode($this->allowedIncludeCounts), json_encode($valid)
));
// do_log(sprintf(
// "includeCounts: %s, allow: %s, valid: %s",
// json_encode($includeCounts), json_encode($this->allowedIncludeCounts), json_encode($valid)
// ));
$this->query->withCount($valid);
}