From 6ee60d035ebf2549136e24364012944827d16659 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Wed, 7 May 2025 14:01:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=BC=BA=E5=A4=B1=E4=BF=A1=E6=81=AF=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/AdLogic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/logic/AdLogic.php b/app/api/logic/AdLogic.php index 1710ef2..4a6f7dd 100644 --- a/app/api/logic/AdLogic.php +++ b/app/api/logic/AdLogic.php @@ -55,9 +55,10 @@ class AdLogic ]; break; } + $domain = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://"; + $domain .= $_SERVER['HTTP_HOST']; $list[] = [ -// 'image' => UrlServer::getFileUrl($ad['image']), - 'image' => $ad['image'], + 'image' => $domain.$ad['image'], 'link' => $url, 'link_type' => $ad['link_type'], 'params' => $params,