From 4772e46a5bb114d2189651ff051fc42003d5e6d3 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Sat, 7 Dec 2024 15:14:49 +0800 Subject: [PATCH] 0.88 --- app/api/logic/IndexLogic.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/logic/IndexLogic.php b/app/api/logic/IndexLogic.php index 2b8cbb37..de97dce4 100755 --- a/app/api/logic/IndexLogic.php +++ b/app/api/logic/IndexLogic.php @@ -366,7 +366,9 @@ class IndexLogic extends Logic ->limit(3) ->select() ->toArray(); - + foreach ($news as &$v) { + $v['min_price'] = round(0.88*$v['min_price'],2); + } return $news; }