refactor: make ConfigBase abstract

This commit is contained in:
Wesley F. Young
2024-08-12 00:26:44 +08:00
parent 5dac7b4884
commit 6728c230d6
4 changed files with 6 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
import { OB11Config } from "@/onebot/helper/config";
import { OB11Config } from '@/onebot/helper/config';
interface LoginRuntimeType {
LoginCurrentTime: number;
@@ -30,6 +29,7 @@ const LoginRuntime: LoginRuntimeType = {
QQLoginList: [],
},
};
export const WebUiDataRuntime = {
checkLoginRate: async function(RateLimit: number): Promise<boolean> {
LoginRuntime.LoginCurrentRate++;