提交代码

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['need_draw_num'] = 1;
} }
$goods_type = GoodsType::field('corner_text')->where('value','=',$goods['type'] )->find(); $goods_type = GoodsType::field('corner_text')->where('value', '=', $goods['type'])->find();
if($goods_type){ if ($goods_type) {
$goods['type_text'] = $goods_type['corner_text']; $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') $ling_goods_list = GoodsList::field('goods_id,shang_id,title,imgurl')
->append(['shang_info']) ->append(['shang_info'])
->where(['goods_id' => $goods_id]) ->where(['goods_id' => $goods_id])
@ -1258,6 +1259,18 @@ class Infinite extends Base
$value['imgurl'] = imageUrl($value['imgurl']); $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 = [];
$data['goods'] = $goods; $data['goods'] = $goods;
$data['king_user'] = $king_user; $data['king_user'] = $king_user;