|
|
|
@ -96,6 +96,7 @@ select combo_id as c_id,count(*) as count from orders where status in(2,4) group
|
|
|
|
) as b on a.combo_id=b.c_id where a.status=1" . $sql, $canshu);
|
|
|
|
) as b on a.combo_id=b.c_id where a.status=1" . $sql, $canshu);
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($combos as $key => $combo) {
|
|
|
|
foreach ($combos as $key => $combo) {
|
|
|
|
|
|
|
|
$combo->count=$combo->count?$combo->count:0;
|
|
|
|
$tags = json_decode($combo->tags, true);
|
|
|
|
$tags = json_decode($combo->tags, true);
|
|
|
|
$combo->tags2 = json_decode($combo->tags2, true);
|
|
|
|
$combo->tags2 = json_decode($combo->tags2, true);
|
|
|
|
foreach ($tags as $k => $tag) {
|
|
|
|
foreach ($tags as $k => $tag) {
|
|
|
|
@ -216,7 +217,7 @@ select combo_id as c_id,count(*) as sale_count from orders where status in(2,4)
|
|
|
|
$combo_info['combo_name'] = $combo->name;
|
|
|
|
$combo_info['combo_name'] = $combo->name;
|
|
|
|
$combo_info['crowd_name'] = $combo->crowd_name;
|
|
|
|
$combo_info['crowd_name'] = $combo->crowd_name;
|
|
|
|
$combo_info['img'] = $combo->cover;
|
|
|
|
$combo_info['img'] = $combo->cover;
|
|
|
|
$combo_info['sale_count'] = $combo->sale_count;
|
|
|
|
$combo_info['sale_count'] = $combo->sale_count==null?0:$combo->sale_count;
|
|
|
|
$tags = json_decode($combo->tags, true);
|
|
|
|
$tags = json_decode($combo->tags, true);
|
|
|
|
$combo->tags2 = json_decode($combo->tags2, true);
|
|
|
|
$combo->tags2 = json_decode($combo->tags2, true);
|
|
|
|
foreach ($tags as $k => $tag) {
|
|
|
|
foreach ($tags as $k => $tag) {
|
|
|
|
|