diff --git a/apps/admin.js b/apps/admin.js index bcb668e8..2161f981 100644 --- a/apps/admin.js +++ b/apps/admin.js @@ -28,25 +28,8 @@ export async function userStat(e) { } } -export async function rebuildCookie(e) { - if (!await e.checkAuth({ - auth: "master" - })) return true; - let count = 0; - for (let qq in NoteCookie) { - let uid = NoteCookie[qq].uid; - if (uid) { - redis.set(`genshin:uid:${qq}`, uid, { EX: 2592000 }); - redis.set(`genshin:qq-uid:${qq}`, uid, { EX: 2592000 }); - redis.set(`genshin:uid-qq:${uid}`, qq, { EX: 2592000 }); - count++; - } - } - e.reply(`重建${count}个缓存`) -} - export async function userStatus(e, { Models }) { if (!await e.checkAuth({ auth: "master" diff --git a/index.js b/index.js index 9b4d59ee..fa90b14e 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import { character, wife, wifeReg } from "./apps/character.js"; -import { userStat, rebuildCookie, userStatus, userCacheRebuild, mysUserCk } from "./apps/admin.js"; +import { userStat, userStatus, userCacheRebuild, mysUserCk } from "./apps/admin.js"; -export { character, userStat, rebuildCookie, wife, userStatus, userCacheRebuild, mysUserCk }; +export { character, userStat, wife, userStatus, userCacheRebuild, mysUserCk }; export const rule = {