热销榜单添加上商品返比文字
This commit is contained in:
parent
a329fbbcb6
commit
6038dfc058
@ -1044,10 +1044,10 @@ class IndexLogic extends Logic
|
||||
->select()
|
||||
->toArray();
|
||||
|
||||
foreach ($hot_list as &$v) {
|
||||
foreach ($hot_list as $k => &$v) {
|
||||
// 获取返补比例, subsidy_id为0的就传递一个ID为4的固定ID
|
||||
$hot_list['subsidy'] = (new GoodsSubsidy())->getSubsidyById($hot_list['subsidy_id'] > 0 ? $hot_list['subsidy_id'] : 4);
|
||||
$hot_list['subsidy_txt'] = '最高返' . $hot_list['subsidy']['subsidy'];
|
||||
$hot_list[$k]['subsidy'] = (new GoodsSubsidy())->getSubsidyById($hot_list['subsidy_id'] > 0 ? $hot_list['subsidy_id'] : 4);
|
||||
$hot_list[$k]['subsidy_txt'] = '最高返' . $hot_list['subsidy']['subsidy'];
|
||||
}
|
||||
|
||||
$count = count($hot_list);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user