From 7370d693ed5c4ce082a2d5811ebd237e80b4c69d Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Tue, 19 Nov 2024 22:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E9=94=80=E6=A6=9C=E5=8D=95=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E5=95=86=E5=93=81=E8=BF=94=E6=AF=94=E6=96=87?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/IndexLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/logic/IndexLogic.php b/app/api/logic/IndexLogic.php index 32a82d34..3c4358e6 100755 --- a/app/api/logic/IndexLogic.php +++ b/app/api/logic/IndexLogic.php @@ -1046,8 +1046,8 @@ class IndexLogic extends Logic foreach ($hot_list as $k => &$v) { // 获取返补比例, subsidy_id为0的就传递一个ID为4的固定ID - $hot_list[$k]['subsidy'] = (new GoodsSubsidy())->getSubsidyById($hot_list['subsidy_id'] > 0 ? $hot_list['subsidy_id'] : 4); - $hot_list[$k]['subsidy_txt'] = '最高返' . $hot_list['subsidy']['subsidy']; + $hot_list[$k]['subsidy'] = (new GoodsSubsidy())->getSubsidyById($v['subsidy_id'] > 0 ? $v['subsidy_id'] : 4); + $hot_list[$k]['subsidy_txt'] = '最高返' . $hot_list[$k]['subsidy']['subsidy']; } $count = count($hot_list);