2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00

Merge pull request #61 from TimeRainStarSky/master

修改 segment 导入
This commit is contained in:
cvs 2023-03-23 23:49:46 +08:00 committed by GitHub
commit 83fbfd6581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 4 additions and 15 deletions

View File

@ -1,6 +1,3 @@
import {
segment
} from "oicq";
import fetch from "node-fetch"; import fetch from "node-fetch";
import fs from "fs"; import fs from "fs";
import { import {

View File

@ -5,9 +5,6 @@ import {
import fs from "fs"; import fs from "fs";
import fetch from "node-fetch"; import fetch from "node-fetch";
import utils from "../model/mys/utils.js"; import utils from "../model/mys/utils.js";
import {
segment
} from "oicq";
let path = './data/map' let path = './data/map'
//mapId-地图别名 //mapId-地图别名
let getPath={ let getPath={

View File

@ -5,7 +5,6 @@ import mys from "../model/mhyTopUpLogin.js"
import Common from "../components/Common.js"; import Common from "../components/Common.js";
import { bindStoken } from './user.js' import { bindStoken } from './user.js'
import utils from '../model/mys/utils.js'; import utils from '../model/mys/utils.js';
import { segment } from 'oicq'
const _path = process.cwd(); const _path = process.cwd();
export const rule = { export const rule = {
qrCodeLogin: { qrCodeLogin: {

View File

@ -1,8 +1,5 @@
import User from "../model/user.js" import User from "../model/user.js"
import moment from 'moment'; import moment from 'moment';
import {
segment
} from "oicq";
export const rule = { export const rule = {
sign: { sign: {
reg: `^#*(原神|崩坏3|崩坏2|未定事件簿)签到$`, reg: `^#*(原神|崩坏3|崩坏2|未定事件簿)签到$`,

View File

@ -1,6 +1,3 @@
import {
segment
} from "oicq";
import fs from "fs"; import fs from "fs";
import { import {
Cfg Cfg

View File

@ -1,5 +1,4 @@
import { Cfg } from "./index.js"; import { Cfg } from "./index.js";
import { segment } from "oicq";
import { currentVersion, yunzaiVersion,isV3 } from "./Changelog.js"; import { currentVersion, yunzaiVersion,isV3 } from "./Changelog.js";
export const render = async function (path, params, cfg) { export const render = async function (path, params, cfg) {
let paths = path.split("/"); let paths = path.split("/");

View File

@ -5,6 +5,10 @@ import {
} from './components/Changelog.js' } from './components/Changelog.js'
import Data from './components/Data.js' import Data from './components/Data.js'
if (!global.segment) {
global.segment = (await import("oicq")).segment
}
export * from './apps/index.js' export * from './apps/index.js'
let index = { let index = {
atlas: {} atlas: {}

View File

@ -1,6 +1,5 @@
import User from "./user.js"; import User from "./user.js";
import utils from './mys/utils.js'; import utils from './mys/utils.js';
import { segment } from 'oicq'
import Common from "../components/Common.js"; import Common from "../components/Common.js";
export default class mysTopLogin { export default class mysTopLogin {
constructor(e) { constructor(e) {