抓取结果
0) { usort($files, function($a, $b) { return filemtime($b) filemtime($a); }); return '/uploads/' . trim($subdir, '/') . '/' . basename($files[0]); } } catch (Throwable $e) { /* ignore */ } return ''; } // 站点 logo、banner 与套餐封面兜底路径 $defaultBanner = latestUpload('banners'); if ($defaultBanner === '') { $defaultBanner = '/images/banner.png'; } $siteLogo = latestUpload('medias'); if ($siteLogo === '') { $siteLogo = '/images/icon.png'; } $defaultPackageCover = latestUpload('packages'); if ($defaultPackageCover === '') { $defaultPackageCover = '/images/setMeal.png'; } // 中文注释:加载套餐列表(严格使用 items_json,不再关联旧媒体表) $packages = []; if ($pdo) { try { // 直接读取 packages 表,列表字段用于展示;媒体数以 JSON 长度为准 $sql = "SELECT p.*, CASE WHEN p.items_json IS NULL OR JSON_TYPE(p.items_json) = 'NULL' THEN 0 ELSE JSON_LENGTH(p.items_json) END AS json_media_count FROM packages p WHERE p.status = 1 ORDER BY p.sort_order DESC, p.updated_at DESC"; $packages = $pdo->query($sql)->fetchAll(); } catch (Throwable $e) { $packages = []; } } $banners = []; if ($pdo) { try { $ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $isMobile = (bool)preg_match('/Mobile|Android|iPhone|iPad|iPod|Windows Phone|MQQBrowser/i', $ua); $deviceTarget = $isMobile ? 'mobile' : 'pc'; // 兼容缺少 device 字段的旧表结构:如果不存在该字段,则不做分端筛选 $hasDeviceColumn = false; try { $chk = $pdo->query("SHOW COLUMNS FROM banners LIKE 'device'"); $hasDeviceColumn = $chk && $chk->rowCount() > 0; } catch (Throwable $ie) { $hasDeviceColumn = false; } if ($hasDeviceColumn) { $sql = 'SELECT id, title, image_url, link_url, device FROM banners WHERE status = 1 AND (device = "both" OR device = :device) ORDER BY sort_order DESC, updated_at DESC'; $stmt = $pdo->prepare($sql); $stmt->execute([':device' => $deviceTarget]); $banners = $stmt->fetchAll(); } else { // 无 device 字段时,默认返回全部作为兜底 $sql = 'SELECT id, title, image_url, link_url FROM banners WHERE status = 1 ORDER BY sort_order DESC, updated_at DESC'; $stmt = $pdo->query($sql); $rows = $stmt ? $stmt->fetchAll() : []; // 为后续模板渲染补齐 device 字段(视为 both) $banners = array_map(function($r) { if (!isset($r['device'])) { $r['device'] = 'both'; } return $r; }, $rows ?: []); } } catch (Throwable $e) { $banners = []; } } ?> 我要久久发-软文发布_媒体发稿_新闻广告投放平台 " target="_blank" rel="noopener"> " alt=""> " alt=""> " alt=""> HI,欢迎进入我要久久发广告平台 注册会员享超低发稿,开启海量推广 记住密码 忘记密码? 立即登录 注册 0) { try { require_once __DIR__ . '/includes/PackageQuota.php'; $map = PackageQuota::remainingProductQuotas($pdo, $userId); foreach ($map as $k => $v) { $remainSum += max(0, (int)$v); } } catch (Throwable $e) { $remainSum = 0; } try { require_once __DIR__ . '/includes/Database.php'; require_once __DIR__ . '/includes/UserCenter.php'; $counts = UserCenter::articleStatusCounts(Database::getInstance(), $userId); $publishedCount = max(0, (int)($counts['published'] ?? 0)); $pendingCount = max(0, (int)($counts['pending'] ?? 0)); } catch (Throwable $e) { $publishedCount = 0; $pendingCount = 0; } } $uname = htmlspecialchars((string)($_SESSION['user_username'] ?? ''), ENT_QUOTES); ?> 账号名 套餐剩余额度 已发布广告 审核中广告 购买套餐 个人中心 暂无套餐数据 ">" alt=""/> "> "> 详情 DETAIL 推荐理由: 投放规则: 媒体数: 投放订单数: ¥ ¥ 立即购买
网站标题
我要久久发-软文发布_媒体发稿_新闻广告投放平台
关键词
软文发布,媒体发稿,广告投放
站点描述
我要久久发(www.woyao998.com) 2009年起步,16年老品牌媒体投稿平台,企业和个人发布各种广告信息,客户覆盖全国,推广效果好,助您业绩翻倍。