0.88
This commit is contained in:
parent
47e0ae0889
commit
81beb5c69f
@ -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']);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user