/* ============================================================ 2026-11-29 QwenWork:当前站点 URL 自动判断(不再写死域名) qw_site_url() 返回 https://当前主域 qw_fix_url() 把内容里写死的本站域名升级为 https 并替换为当前主域 ============================================================ */ if (!function_exists('qw_site_url')) { function qw_site_url($path = '') { global $cfg_weburl; $scheme = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== '' && strtolower($_SERVER['HTTPS']) !== 'off') ? 'https' : 'http'; $host = ''; if (!empty($cfg_weburl)) { $host = preg_replace('/^www\./i', '', trim($cfg_weburl)); } elseif (!empty($_SERVER['HTTP_HOST'])) { $host = preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']); } return $scheme . '://' . $host . $path; } function qw_fix_url($text) { global $cfg_weburl; if (!is_string($text) || $text === '' || empty($cfg_weburl)) { return $text; } $host = preg_replace('/^www\./i', '', trim($cfg_weburl)); $base = qw_site_url(); $text = preg_replace('#https?://(?:www\.)?' . preg_quote($host, '#') . '#i', $base, $text); $text = preg_replace('#(? 解决方案 - 诚信起重吊装吊车出租
您好,欢迎进入诚信起重吊装吊车出租官方网站!
全国服务热线1539211056115392110561