foreach ($cat_arr as $v) {
            $a = array();
            $a['id'] = $v['art_cat_id'];
            $a['name'] = $v['cat_name'];
            $temp_arr[] = $a;
        }
    } else {
        $cat_obj = new Keke_witkey_industry_class();
        $where = "1=1 ";
        $where .= $tag_info['cat_cat_ids'] ? "and indus_id in ({$tag_info['cat_cat_ids']})" : $tag_info['cat_cat_ids'] ? "and indus_id = '{$tag_info['cat_cat_id']}')" : "";
        if ($tag_info['cat_loadsub']) {
            $where .= $tag_info['cat_cat_ids'] ? "and indus_pid in ({$tag_info['cat_cat_ids']})" : $tag_info['cat_cat_ids'] ? "and indus_pid = '{$tag_info['cat_cat_id']}')" : "";
        }
        $where .= $tag_info['cat_onlyrecommend'] ? "and is_recommend = 1 " : "";
        $cat_obj->setWhere($where . " order by listorder");
        $cat_arr = $cat_obj->query_keke_witkey_industry();
        $temp_arr = array();
        foreach ($cat_arr as $v) {
            $a = array();
            $a['id'] = $v['indus_id'];
            $a['name'] = $v['indus_name'];
            $temp_arr[] = $a;
        }
    }
} elseif ($tag_info['tag_type'] == 4) {
    $sql = $tag_info['sql'];
    $temp_arr = db_factory::query($sql);
} elseif ($tag_info['tag_type'] == 5) {
    die($tag_info['code']);
}
$datalist = $temp_arr;