mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix:兼容fetch
This commit is contained in:
parent
7515b7a526
commit
db26472a7d
4 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import fs from 'fs';
|
||||
import MysZZZApi from './mysapi.js';
|
||||
import YAML from 'yaml';
|
||||
import fetch from 'node-fetch';
|
||||
let User;
|
||||
try {
|
||||
User = (await import('../../xiaoyao-cvs-plugin/model/user.js')).default;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import fetch from 'node-fetch';
|
||||
import { ZZZ_SQUARE_AVATAR, ZZZ_SQUARE_BANGBOO } from './mysapi/api.js';
|
||||
import { imageResourcesPath } from './path.js';
|
||||
import { char, equip, weapon } from './convert.js';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import fetch from 'node-fetch';
|
||||
import { SingleGachaLog, ZZZGachaLogResp } from '../model/gacha.js';
|
||||
import { sleep } from '../utils/time.js';
|
||||
import { rank } from './convert.js';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { getCk } from './common.js';
|
|||
import _ from 'lodash';
|
||||
import NoteUser from '../../genshin/model/mys/NoteUser.js';
|
||||
import settings from '../lib/settings.js';
|
||||
import fetch from 'node-fetch';
|
||||
|
||||
export class ZZZPlugin extends plugin {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue