mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
✏️ 函数修正
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file web/utils/getRequestHeader.ts
|
* @file web/utils/getRequestHeader.ts
|
||||||
* @description 获取请求头
|
* @description 获取请求头
|
||||||
* @since Beta v0.3.6
|
* @since Beta v0.3.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Md5 from "js-md5";
|
import Md5 from "js-md5";
|
||||||
@@ -102,19 +102,14 @@ export function getRequestHeader(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 获取 DS
|
* @description 获取 DS
|
||||||
* @since Beta v0.3.4
|
* @since Beta v0.3.9
|
||||||
* @param {string} saltType salt 类型
|
* @param {string} saltType salt 类型
|
||||||
* @param {number} dsType ds 类型
|
* @param {number} dsType ds 类型
|
||||||
* @param {Record<string, string|number>|string} body
|
* @param {Record<string, string|number>|string} body
|
||||||
* @param {Record<string, string|number>|string} query
|
* @param {Record<string, string|number>|string} query
|
||||||
* @returns {string} DS
|
* @returns {string} DS
|
||||||
*/
|
*/
|
||||||
export function getDS4JS(
|
export function getDS4JS(saltType: string, dsType: 1, body: undefined, query: undefined): string;
|
||||||
saltType: string,
|
|
||||||
dsType: 1 | 2,
|
|
||||||
body: undefined,
|
|
||||||
query: undefined,
|
|
||||||
): string;
|
|
||||||
export function getDS4JS(
|
export function getDS4JS(
|
||||||
saltType: string,
|
saltType: string,
|
||||||
dsType: 2,
|
dsType: 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user