1 Star 0 Fork 22

user_10645865/Guoba-Plugin

forked from Guoba-Yunzai/Guoba-Plugin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.js 533 Bytes
一键复制 编辑 原始数据 按行查看 历史
牧星长ZOLAY 提交于 2022-10-30 03:42 . feat: V2支持锅巴登录
import {isV3} from './utils/adapter.js'
import {checkPackage} from './utils/adapter/check.js'
import {createImport, GI, GID} from './utils/guobaImport.js'
let passed = await checkPackage()
if (!passed) {
throw 'Missing necessary dependencies'
}
global.Guoba = {GI, GID, createImport}
const apps = {}, rule = {}
let appRouter = null
if (isV3) {
await (await import('./utils/adapter/initV3.js')).init(apps)
} else {
appRouter = await (await import('./utils/adapter/initV2.js')).init(rule)
}
export {apps, rule, appRouter}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/muyudada/guoba-plugin.git
git@gitee.com:muyudada/guoba-plugin.git
muyudada
guoba-plugin
Guoba-Plugin
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385