style: lint

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

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,