提交代码

This commit is contained in:
youda 2025-04-18 02:19:45 +08:00
parent 3ee2894373
commit fe916f5aca

View File

@ -75,8 +75,8 @@ class Infinite extends Base
$goods['need_draw_num'] = 1;
}
$goods_type = GoodsType::field('corner_text')->where('value','=',$goods['type'] )->find();
if($goods_type){
$goods_type = GoodsType::field('corner_text')->where('value', '=', $goods['type'])->find();
if ($goods_type) {
$goods['type_text'] = $goods_type['corner_text'];
}
#当前热度
@ -1247,6 +1247,7 @@ class Infinite extends Base
});
}
$ling_goods_list = GoodsList::field('goods_id,shang_id,title,imgurl')
->append(['shang_info'])
->where(['goods_id' => $goods_id])
@ -1258,6 +1259,18 @@ class Infinite extends Base
$value['imgurl'] = imageUrl($value['imgurl']);
}
$ling_goods_list1 = GoodsList::field('goods_id,shang_id,title,imgurl')
->append(['shang_info'])
->where(['goods_id' => $goods_id])
->where('is_lingzhu', '=', 1)
->where(['num' => 0])
->order('sort desc,shang_id asc,id asc')
->select();
foreach ($ling_goods_list1 as &$value) {
$value['imgurl'] = imageUrl($value['imgurl']);
$ling_goods_list[] = $value;
}
$data = [];
$data['goods'] = $goods;
$data['king_user'] = $king_user;