Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
陈剑华
2024-06-24 14:25:49 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
8a83e00e0989ea08004d4fbe921d781013aa8d55
8a83e00e
2 parents
674bf06a
79191561
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
sight_harmony/commons/wdKit/src/main/ets/utils/Logger.ets
sight_harmony/commons/wdNetwork/src/main/ets/http/AxiosRequest.ets
sight_harmony/commons/wdNetwork/src/main/ets/http/HttpHostManager.ets
sight_harmony/commons/wdKit/src/main/ets/utils/Logger.ets
View file @
8a83e00
...
...
@@ -40,10 +40,15 @@ export class Logger {
Logger.domain = domain;
}
static debug(...args: string[]) {
static debug(
prefixStr?:string,
...args: string[]) {
if (!Logger.isDebug) {
return
}
if(prefixStr){
Logger.prefix = prefixStr
}else {
Logger.prefix = 'SightApp';
}
Logger.logContent(LogLevel.DEBUG, ...args)
}
...
...
@@ -150,4 +155,4 @@ export class Logger {
}
}
export default new Logger('SightApp', 0xFF00)
\ No newline at end of file
// export default new Logger('SightApp', 0xFF00)
\ No newline at end of file
...
...
sight_harmony/commons/wdNetwork/src/main/ets/http/AxiosRequest.ets
View file @
8a83e00
...
...
@@ -87,6 +87,7 @@ instance.interceptors.response.use(// 响应拦截器response类型就是Axios.r
// return Promise.reject(new Error(message))
// }
// const data: ResponseBean<any> = response.data
Logger.debug('HttpRequest', 'response ==============start=================')
Logger.debug('HttpRequest', 'response: ' + JSON.stringify(response.data))
Logger.debug('HttpRequest', 'response ==============end=================')
...
...
sight_harmony/commons/wdNetwork/src/main/ets/http/HttpHostManager.ets
View file @
8a83e00
...
...
@@ -21,7 +21,7 @@ export enum HostEnum {
* 环境host管理工具类
*/
export class HostManager {
private static _hostUrl: HostEnum = HostEnum.HOST_
PRODUC
T;
private static _hostUrl: HostEnum = HostEnum.HOST_
UA
T;
static changeHost(host: HostEnum) {
HostManager._hostUrl = host;
...
...
Please
register
or
login
to post a comment