发布球局
This commit is contained in:
@@ -41,7 +41,7 @@ class HttpService {
|
||||
|
||||
constructor() {
|
||||
// 使用环境配置
|
||||
this.baseURL = `${envConfig.apiBaseURL}/api/${envConfig.apiVersion}`
|
||||
this.baseURL = `${envConfig.apiBaseURL}/api/`
|
||||
this.timeout = envConfig.timeout
|
||||
this.enableLog = envConfig.enableLog
|
||||
|
||||
@@ -77,7 +77,6 @@ class HttpService {
|
||||
private buildHeaders(config: RequestConfig): Record<string, string> {
|
||||
const headers: Record<string, string> = {
|
||||
'Content-Type': 'application/json',
|
||||
'X-Environment': envConfig.name, // 添加环境标识
|
||||
...config.headers
|
||||
}
|
||||
|
||||
@@ -211,6 +210,7 @@ class HttpService {
|
||||
}
|
||||
|
||||
try {
|
||||
console.log(this.buildHeaders(config), 1111);
|
||||
const requestConfig = {
|
||||
url: fullUrl,
|
||||
method: method,
|
||||
|
||||
Reference in New Issue
Block a user