mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-08 22:07:56 +00:00
add hostPage weight and rank info
This commit is contained in:
parent
d20487acfd
commit
57f64f6b90
@ -35,11 +35,13 @@ if (API_ENABLED) {
|
|||||||
// Generate results
|
// Generate results
|
||||||
$dbResults = [];
|
$dbResults = [];
|
||||||
|
|
||||||
foreach ($sphinxResults as $sphinxResult) {
|
foreach ($sphinxResults as $i => $sphinxResult) {
|
||||||
|
|
||||||
if ($hostPage = $db->getFoundHostPage($sphinxResult->id)) {
|
if ($hostPage = $db->getFoundHostPage($sphinxResult->id)) {
|
||||||
|
|
||||||
$dbResults[] = $hostPage;
|
$dbResults[$i] = $hostPage;
|
||||||
|
|
||||||
|
$dbResults[$i]->weight = $sphinxResult->weight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user