From 1201bf7bd24598f6a21155d24bd2194f89ca8861 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 24 Oct 2022 12:34:48 +0800 Subject: [PATCH] edit-sylive-page2 --- common/libraries/market/Sylive_entity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/libraries/market/Sylive_entity.php b/common/libraries/market/Sylive_entity.php index b6dce4b5..8ede9e92 100644 --- a/common/libraries/market/Sylive_entity.php +++ b/common/libraries/market/Sylive_entity.php @@ -184,8 +184,9 @@ class Sylive_entity{ $org_rows = $this->ci->market_sylive_organization_model->map('organizationId','organizationName',["organizationId in ($biz_ids)"],'','','','organizationId,organizationName'); } foreach ($rows as $key=>$val) { + $rank = $page>1 ? $key : ($page-1)*$size; $lists[] = [ - 'ranking' => $key+1, + 'ranking' => $rank+1, 'name' => $org_rows[$val['bizId']] ? $org_rows[$val['bizId']] : '', 'num' => $val[$this->map_kpi_biz[$type]].'人', 'tip' => $biz_id==$val['bizId'] ? '本店' : '',