|
|
|
|
@ -186,7 +186,13 @@ class ComboController extends Controller
|
|
|
|
|
select combo_id as c_id,count(*) as count from combo_items where status in(1) and keshi_name<>'材料费' group by combo_id
|
|
|
|
|
) as b on a.combo_id=b.c_id where a.status=1 " . $sql ." ", $canshu);
|
|
|
|
|
$combos_list=[];
|
|
|
|
|
$nowdatetime=date('Y-m-d H:i:s');
|
|
|
|
|
foreach ($combos as $key => $combo) {
|
|
|
|
|
if(isset($combo->youxiao_end_time) and isset($combo->youxiao_start_time)){
|
|
|
|
|
if($nowdatetime>$combo->youxiao_end_time or $nowdatetime<$combo->youxiao_start_time){
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(json_decode($combo->beizhu, JSON_UNESCAPED_UNICODE)){
|
|
|
|
|
$beizhu=json_decode($combo->beizhu, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
if(isset($beizhu['可用渠道']) and !empty($beizhu['可用渠道'])){
|
|
|
|
|
|