From da5a1675f1ba43c8f9805e9b65caee24f187880e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Fri, 14 Nov 2025 17:08:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(env):=20=E6=96=B0=E5=A2=9E=E5=A4=9A?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E7=8E=AF=E5=A2=83=E7=AE=A1=E7=90=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在GlobalValue中新增envStatus属性用于记录环境状态- 支持TEST环境的自定义域名配置- 优化环境切换逻辑,支持多域名自动适配 - 新增EnvManager类统一管理环境同步和检测 - 实现用户登录前的环境状态同步机制 - 完善登录流程中的用户存在性校验 - 注册流程支持多环境验证码发送 - 首页及各个业务模块集成环境同步机制- HttpHelper支持批量添加并发请求白名单 - 新增checkUserLocal接口用于用户本地化判断 -修复环境URL获取逻辑,提高系统稳定性 --- src/main/ets/http/HttpHelper.ets | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/ets/http/HttpHelper.ets b/src/main/ets/http/HttpHelper.ets index 0d999aa..55e11a1 100644 --- a/src/main/ets/http/HttpHelper.ets +++ b/src/main/ets/http/HttpHelper.ets @@ -44,12 +44,26 @@ export class HttpHelper { this.concurrentList.add(apiNo) } } + public addConcurrents(apiNo: string[]) { + for (let apiNoElement of apiNo) { + if (this.concurrentList.getIndexOf(apiNoElement) === -1) { + this.concurrentList.add(apiNoElement) + } + } + } public removeConcurrent(apiNo: string) { if (this.concurrentList.getIndexOf(apiNo) !== -1) { this.concurrentList.remove(apiNo) } } + public removeConcurrents(apiNo: string[]) { + for (let apiNoElement of apiNo) { + if (this.concurrentList.getIndexOf(apiNoElement) !== -1) { + this.concurrentList.remove(apiNoElement) + } + } + } /** * postJson请求