Compare commits
No commits in common. "1f24a59bd97041e2e25810d8a1437cba7a641c78" and "b99a3412e2378695fd34f54bb54b747eeece0707" have entirely different histories.
1f24a59bd9
...
b99a3412e2
@ -167,18 +167,17 @@ class API<
|
||||
}
|
||||
> {
|
||||
|
||||
/**
|
||||
* 默认调试标签
|
||||
*/
|
||||
public static defaultLogLabel:LogLabel = new LogLabel(
|
||||
`API:API`, colorRadio(200, 120, 222)
|
||||
);
|
||||
|
||||
/**
|
||||
* 基础 URL
|
||||
* TODO: 这里可能涉及负载均衡
|
||||
*/
|
||||
public baseUrl: string = "https://jwc.nogg.cn";
|
||||
public static get baseUrl():string {
|
||||
return "https://jwc.nogg.cn";
|
||||
}
|
||||
|
||||
public static defaultLogLabel:LogLabel = new LogLabel(
|
||||
`API:API`, colorRadio(200, 120, 222)
|
||||
);
|
||||
|
||||
/**
|
||||
* Logger 使用的标签
|
||||
@ -320,7 +319,7 @@ class API<
|
||||
|
||||
// 重置请求数据
|
||||
const requestData:IWxRequestOption<O> = this.requestData = {
|
||||
url: this.baseUrl + this.url,
|
||||
url: API.baseUrl + this.url,
|
||||
data: {}, header: {},
|
||||
timeout: this.timeout,
|
||||
method: this.method,
|
||||
|
Loading…
Reference in New Issue
Block a user