From eb740171431b781a7ccd8166e82461ad652f87c7 Mon Sep 17 00:00:00 2001 From: edwinQQQ Date: Tue, 16 Sep 2025 11:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20API=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=20URL=EF=BC=8C=E4=BC=98=E5=8C=96=E4=B8=AD?= =?UTF-8?q?=E7=82=B9=E7=9F=A9=E5=BD=A2=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BB=A5=E9=80=82=E9=85=8D=E5=B1=8F=E5=B9=95=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=B8=B8=E9=87=8F=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E4=BB=A5=E6=8F=90=E5=8D=87=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E5=8F=AF=E7=BB=B4=E6=8A=A4=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YuMi/Global/YUMIMacroUitls.h | 2 +- YuMi/Modules/YMRoom/View/StageView/SocialStageView.m | 6 +++--- YuMi/Modules/YMRoom/View/StageView/StageView.h | 4 ++++ YuMi/Modules/YMRoom/View/StageView/StageView.m | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/YuMi/Global/YUMIMacroUitls.h b/YuMi/Global/YUMIMacroUitls.h index 345119cb..84e497a1 100644 --- a/YuMi/Global/YUMIMacroUitls.h +++ b/YuMi/Global/YUMIMacroUitls.h @@ -57,7 +57,7 @@ isPhoneXSeries = [[UIApplication sharedApplication] delegate].window.safeAreaIns ///正式环境 #define API_HOST_URL @"https://api.hfighting.com" ///测试环境 -#define API_HOST_TEST_URL @"http://beta.api.molistar.xyz" +#define API_HOST_TEST_URL @"http://beta.api.pekolive.com" // http://beta.api.pekolive.com | http://beta.api.molistar.xyz #define API_Image_URL @"https://image.hfighting.com" diff --git a/YuMi/Modules/YMRoom/View/StageView/SocialStageView.m b/YuMi/Modules/YMRoom/View/StageView/SocialStageView.m index 86675f00..0cd964af 100644 --- a/YuMi/Modules/YMRoom/View/StageView/SocialStageView.m +++ b/YuMi/Modules/YMRoom/View/StageView/SocialStageView.m @@ -161,9 +161,9 @@ CGFloat rightCenterX = CGRectGetMinX(rightRect) + mcWidth / 2; CGFloat midX = (leftCenterX + rightCenterX) / 2.0; - // 以中点为中心,返回 75x75 的矩形 - CGFloat size = 75.0; - return CGRectMake(midX - size / 2.0, circleCenterY - size / 2.0, size, size); + // 以中点为中心,返回适配屏幕的矩形 + CGFloat size = kGetScaleWidth(kMidpointRectSize); + return CGRectMake(midX - size / 2.0, circleCenterY - size / 4.0, size, size); } @end diff --git a/YuMi/Modules/YMRoom/View/StageView/StageView.h b/YuMi/Modules/YMRoom/View/StageView/StageView.h index e02ed267..b3a7d1ff 100644 --- a/YuMi/Modules/YMRoom/View/StageView/StageView.h +++ b/YuMi/Modules/YMRoom/View/StageView/StageView.h @@ -9,9 +9,13 @@ #import "RoomHostDelegate.h" #import "RoomGuestDelegate.h" #import "MicroViewProtocol.h" +#import "YUMIMacroUitls.h" NS_ASSUME_NONNULL_BEGIN +// 中点矩形尺寸常量 +static const CGFloat kMidpointRectSize = 75.0; + @class MicroQueueModel; @protocol StageViewDelegate diff --git a/YuMi/Modules/YMRoom/View/StageView/StageView.m b/YuMi/Modules/YMRoom/View/StageView/StageView.m index ea50d0a7..8fd2a541 100644 --- a/YuMi/Modules/YMRoom/View/StageView/StageView.m +++ b/YuMi/Modules/YMRoom/View/StageView/StageView.m @@ -1292,8 +1292,8 @@ CGFloat rightTopY = CGRectGetMinY(rightRect); CGFloat midTopY = (leftTopY + rightTopY) / 2.0 - 10.0; - // 返回75x75的矩形 - CGFloat size = 75.0; + // 返回适配屏幕的矩形 + CGFloat size = kGetScaleWidth(kMidpointRectSize); return CGRectMake(midX - size / 2.0, midTopY, size, size); }