Compare commits

..

No commits in common. "1f24a59bd97041e2e25810d8a1437cba7a641c78" and "b99a3412e2378695fd34f54bb54b747eeece0707" have entirely different histories.

View File

@ -167,18 +167,17 @@ class API<
} }
> { > {
/**
*
*/
public static defaultLogLabel:LogLabel = new LogLabel(
`API:API`, colorRadio(200, 120, 222)
);
/** /**
* URL * URL
* TODO: 这里可能涉及负载均衡 * 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 使 * Logger 使
@ -320,7 +319,7 @@ class API<
// 重置请求数据 // 重置请求数据
const requestData:IWxRequestOption<O> = this.requestData = { const requestData:IWxRequestOption<O> = this.requestData = {
url: this.baseUrl + this.url, url: API.baseUrl + this.url,
data: {}, header: {}, data: {}, header: {},
timeout: this.timeout, timeout: this.timeout,
method: this.method, method: this.method,