mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
refactor: requests
This commit is contained in:
@@ -66,7 +66,7 @@ export function cacheFunc(ttl: number, customKey: string = '') {
|
||||
return descriptor;
|
||||
};
|
||||
}
|
||||
function isValidOldConfig(config: any) {
|
||||
export function isValidOldConfig(config: any) {
|
||||
if (typeof config !== 'object') {
|
||||
return false;
|
||||
}
|
||||
@@ -110,7 +110,7 @@ function isValidOldConfig(config: any) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function migrateConfig(oldConfig: any) {
|
||||
export function migrateConfig(oldConfig: any) {
|
||||
const newConfig = {
|
||||
http: {
|
||||
enable: oldConfig.enableHttp,
|
||||
|
Reference in New Issue
Block a user