From 9ee9e807575c514a976a61acacc5d5a461ff1ad4 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Sat, 7 Dec 2024 23:37:10 +0800 Subject: [PATCH] 0.88 --- app/api/logic/GoodsLogic.php | 3 --- app/api/logic/IndexLogic.php | 7 ++++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/api/logic/GoodsLogic.php b/app/api/logic/GoodsLogic.php index 99b32488..d2452825 100755 --- a/app/api/logic/GoodsLogic.php +++ b/app/api/logic/GoodsLogic.php @@ -660,9 +660,6 @@ class GoodsLogic extends Logic ->select(); foreach ($list as &$v) { $v['min_price'] = round(0.88*$v['min_price'],2); - if($v['min_price'] == $v['market_price']){ - $v['market_price'] = round($v['market_price']/0.88,2); - } } $set_price_type = 0; if ($set != null&&$settpye!=1) { diff --git a/app/api/logic/IndexLogic.php b/app/api/logic/IndexLogic.php index de97dce4..41211838 100755 --- a/app/api/logic/IndexLogic.php +++ b/app/api/logic/IndexLogic.php @@ -663,6 +663,9 @@ class IndexLogic extends Logic ->limit(9) ->select() ->toArray(); + foreach ($lists as &$v) { + $v['min_price'] = round(0.88*$v['min_price'],2); + } $set_price_type = 0; if ($set != null&&$settpye!=1) { foreach ($lists as $key => $value) { @@ -765,7 +768,9 @@ class IndexLogic extends Logic ->limit(4) ->select() ->toArray(); - + foreach ($lists as &$v) { + $v['min_price'] = round(0.88*$v['min_price'],2); + } $set_price_type = 0; if ($set != null&&$settpye!=1) { foreach ($lists as $key => $value) {