From 35e7bb2d5e5aef9dbd221cf749a6013e8d656a6e Mon Sep 17 00:00:00 2001 From: orchid-world Date: Wed, 11 Feb 2026 11:22:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(minigame):=20=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=B7=BB=E5=8A=A0=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E8=8E=B7=E5=8F=96=E5=8A=9F=E8=83=BD=20(#44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pal/minigame/alipay.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pal/minigame/alipay.ts b/pal/minigame/alipay.ts index ad4ee44852..04565ed673 100644 --- a/pal/minigame/alipay.ts +++ b/pal/minigame/alipay.ts @@ -149,8 +149,12 @@ minigame.stopAccelerometer = function (res: any): void { // #region SafeArea minigame.getSafeArea = function (): SafeArea { + if (typeof minigame.getWindowInfo === "function") { + const windowInfo = minigame.getWindowInfo(); + return windowInfo.safeArea; + } console.warn('getSafeArea is not supported on this platform'); - const systemInfo = minigame.getSystemInfoSync(); + const systemInfo = minigame.getSystemInfoSync(); return { top: 0, left: 0,