浏览代码

接口相关调整

徐勤民 6 月之前
父节点
当前提交
6d3e87a5ed
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      BuildProfile.ets
  2. 1 0
      src/main/ets/http/HttpHelper.ts

+ 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.3';
-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';
 
 /**

+ 1 - 0
src/main/ets/http/HttpHelper.ts

@@ -221,6 +221,7 @@ export class HttpHelper {
         ...params.headers
       }
       console.log('=====>', 'GET:', this.getUrl(params.url, params.query))
+      console.log('=====>', 'header:', JSON.stringify(header))
 
       httpRequest.request(this.getUrl(params.url, params.query), {
         method: http.RequestMethod.GET,