mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
修改 segment 导入
This commit is contained in:
parent
f2071b7bcb
commit
e2a49427b0
@ -1,6 +1,3 @@
|
||||
import {
|
||||
segment
|
||||
} from "oicq";
|
||||
import fetch from "node-fetch";
|
||||
import fs from "fs";
|
||||
import {
|
||||
|
@ -5,9 +5,6 @@ import {
|
||||
import fs from "fs";
|
||||
import fetch from "node-fetch";
|
||||
import utils from "../model/mys/utils.js";
|
||||
import {
|
||||
segment
|
||||
} from "oicq";
|
||||
let path = './data/map'
|
||||
//mapId-地图别名
|
||||
let getPath={
|
||||
|
@ -5,7 +5,6 @@ import mys from "../model/mhyTopUpLogin.js"
|
||||
import Common from "../components/Common.js";
|
||||
import { bindStoken } from './user.js'
|
||||
import utils from '../model/mys/utils.js';
|
||||
import { segment } from 'oicq'
|
||||
const _path = process.cwd();
|
||||
export const rule = {
|
||||
qrCodeLogin: {
|
||||
|
@ -1,8 +1,5 @@
|
||||
import User from "../model/user.js"
|
||||
import moment from 'moment';
|
||||
import {
|
||||
segment
|
||||
} from "oicq";
|
||||
export const rule = {
|
||||
sign: {
|
||||
reg: `^#*(原神|崩坏3|崩坏2|未定事件簿)签到$`,
|
||||
|
@ -1,6 +1,3 @@
|
||||
import {
|
||||
segment
|
||||
} from "oicq";
|
||||
import fs from "fs";
|
||||
import {
|
||||
Cfg
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { Cfg } from "./index.js";
|
||||
import { segment } from "oicq";
|
||||
import { currentVersion, yunzaiVersion,isV3 } from "./Changelog.js";
|
||||
export const render = async function (path, params, cfg) {
|
||||
let paths = path.split("/");
|
||||
|
4
index.js
4
index.js
@ -5,6 +5,10 @@ import {
|
||||
} from './components/Changelog.js'
|
||||
import Data from './components/Data.js'
|
||||
|
||||
if (!global.segment) {
|
||||
global.segment = (await import("oicq")).segment
|
||||
}
|
||||
|
||||
export * from './apps/index.js'
|
||||
let index = {
|
||||
atlas: {}
|
||||
|
@ -1,6 +1,5 @@
|
||||
import User from "./user.js";
|
||||
import utils from './mys/utils.js';
|
||||
import { segment } from 'oicq'
|
||||
import Common from "../components/Common.js";
|
||||
export default class mysTopLogin {
|
||||
constructor(e) {
|
||||
|
Loading…
Reference in New Issue
Block a user