商品列表添加上商品返比文字
This commit is contained in:
parent
8275338d0b
commit
44af7f517d
@ -521,7 +521,11 @@ class GoodsLogic extends Logic
|
||||
->select();
|
||||
|
||||
$set_price_type = 0;
|
||||
foreach ($list as $item) {
|
||||
foreach ($list as $k => $item) {
|
||||
// 获取返补比例, subsidy_id为0的就传递一个ID为4的固定ID
|
||||
$list[$k]['subsidy'] = (new GoodsSubsidy())->getSubsidyById($item['subsidy_id'] > 0 ? $item['subsidy_id'] : 4);
|
||||
$list[$k]['subsidy_txt'] = '最高返' . $list[$k]['subsidy']['subsidy'];
|
||||
|
||||
$item['shop_type'] = $item['shop']['type'];
|
||||
unset($item['shop']);
|
||||
if($set != null&&$settpye!=1){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user