Quellcode durchsuchen

refactor(app): 更新应用配置和依赖管理

- 修改GlobalValue.ets中的环境状态注释顺序
- 修复ApiUtils.ets中的环境状态判断逻辑
- 调整多个API配置的showLog参数设置
- 更新应用版本号从1.1.1到1.1.2
- 将SDK依赖从远程包改为本地文件引用
- 增加HTTP请求超时时间从20秒到60秒
- 修复用户ID获取逻辑以支持绑定环境切换
- 调整构建配置为调试模式
- 添加并发控制到证书下载功能
- 激活基本模块的构建配置项
徐勤民 vor 3 Tagen
Ursprung
Commit
e684edb25a
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 2 2
      BuildProfile.ets
  2. 2 2
      src/main/ets/http/HttpHelper.ets

+ 2 - 2
BuildProfile.ets

@@ -2,8 +2,8 @@
  * Use these variables when you tailor your ArkTS code. They must be of the const type.
  */
 export const HAR_VERSION = '1.0.11';
-export const BUILD_MODE_NAME = 'release';
-export const DEBUG = false;
+export const BUILD_MODE_NAME = 'debug';
+export const DEBUG = true;
 export const TARGET_NAME = 'default';
 
 /**

+ 2 - 2
src/main/ets/http/HttpHelper.ets

@@ -88,8 +88,8 @@ export class HttpHelper {
 
       httpRequest.request(HttpHelperX.getUrl(params.url, params.query), {
         method: http.RequestMethod.POST,
-        connectTimeout: 20000,
-        readTimeout: 20000,
+        connectTimeout: 60000,
+        readTimeout: 60000,
         header: header,
         extraData: params.data,
         usingCache: false,