|
@@ -2069,12 +2069,10 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$where_arr['type'] = 2;
|
|
$where_arr['type'] = 2;
|
|
|
$cr_tmp_list = $cr_model->where($where_arr)->get()->result_array();
|
|
$cr_tmp_list = $cr_model->where($where_arr)->get()->result_array();
|
|
|
}
|
|
}
|
|
|
- var_dump($cr_tmp_list);
|
|
|
|
|
- die;
|
|
|
|
|
$fids = array_column($cr_tmp_list,'fid');
|
|
$fids = array_column($cr_tmp_list,'fid');
|
|
|
$ids = array_unique($fids);
|
|
$ids = array_unique($fids);
|
|
|
if(empty($ids)){
|
|
if(empty($ids)){
|
|
|
-
|
|
|
|
|
|
|
+ $where .= " and id = 0 ";
|
|
|
}else{
|
|
}else{
|
|
|
$where .= " and id in (".implode(",",$ids).")";
|
|
$where .= " and id in (".implode(",",$ids).")";
|
|
|
}
|
|
}
|