chore: Support 多账户

This commit is contained in:
手瓜一十雪
2024-08-12 12:41:59 +08:00
parent dde093d321
commit fd226c45f6
3 changed files with 20 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
//LiteLoader需要提供部分IPC接口以便于其他插件调用
const { ipcMain } = require('electron');
const fs = require('fs');
const napcat= require('./napcat.cjs');
ipcMain.handle("napcat_get_webtoken", async (event, arg) => {
return "http://127.0.0.1:6099/webui/?token=" + JSON.parse(fs.readFileSync(__dirname + '/config/webui.json', 'utf-8').toString()).token;
return napcat.NCgetWebUiUrl();
});
require('./napcat.cjs');