This commit is contained in:
xucong 2024-12-07 23:54:53 +08:00
parent 47e0ae0889
commit 81beb5c69f
2 changed files with 2 additions and 2 deletions

@ -71,7 +71,7 @@ class GoodsLogic extends Logic
->where($onSaleWhere) ->where($onSaleWhere)
->where('id', $goodsId) ->where('id', $goodsId)
->findOrEmpty(); ->findOrEmpty();
$goodsDetail['min_price'] = round(0.88*$goodsDetail['min_price'],2); // $goodsDetail['min_price'] = round(0.88*$goodsDetail['min_price'],2);
if ($goodsDetail->isEmpty()) { if ($goodsDetail->isEmpty()) {
self::$error = '商品已下架'; self::$error = '商品已下架';
return false; return false;

@ -1105,7 +1105,7 @@ class IndexLogic extends Logic
} }
$result = array_merge($hot_list, $order_goods); $result = array_merge($hot_list, $order_goods);
foreach ($result as &$v) { foreach ($result as &$v) {
// $v['min_price'] = round(0.88*$v['min_price'],2); $v['min_price'] = round(0.88*$v['min_price'],2);
if (isset($v['image'])) { if (isset($v['image'])) {
$v['image'] = UrlServer::getFileUrl($v['image']); $v['image'] = UrlServer::getFileUrl($v['image']);
} }