0.88
This commit is contained in:
parent
5e6dc7cf0e
commit
0776d3d3b6
@ -1046,7 +1046,9 @@ class GoodsLogic extends Logic
|
||||
->limit(4)
|
||||
->select()
|
||||
->toArray();
|
||||
|
||||
foreach ($list as &$v) {
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
}
|
||||
$count = count($list);
|
||||
|
||||
if ($count < 4) {
|
||||
@ -1080,7 +1082,9 @@ class GoodsLogic extends Logic
|
||||
->field('ng.id as ng_id, g.id as id, g.name, g.image, g.issuing_price, g.market_price, g.min_price, g.purchase_price, g.wholesale_price, g.subsidy_id')
|
||||
->select()
|
||||
->toArray();
|
||||
|
||||
foreach ($list as &$v) {
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
}
|
||||
$goods = Db::name('goods')
|
||||
->where($onSaleWhere)
|
||||
->where($shopWhere)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user