style: lint

This commit is contained in:
手瓜一十雪 committed 2024-05-22 20:58:49 +08:00
1 parent b29f533a3b
commit ac5506a43b
48 files changed
+1027 -1115

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ export class RequestUtil {
// 请求和回复都是JSON data传原始内容 自动编码json
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}, isJsonRet: boolean = true, isArgJson: boolean = true): Promise<T> {
let option = new URL(url);
const option = new URL(url);
const protocol = url.startsWith('https://') ? https : http;
const options = {
hostname: option.hostname,