This commit is contained in:
xucong 2024-12-07 23:37:10 +08:00
parent bf6d0e2124
commit 9ee9e80757
2 changed files with 6 additions and 4 deletions

@ -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) {

@ -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) {