mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 05:07:46 +00:00
feat:自定义enkaApi地址#134
This commit is contained in:
parent
76f23141f8
commit
79d0aa6773
3 changed files with 16 additions and 2 deletions
|
|
@ -1,7 +1,10 @@
|
|||
import { Enka2Mys } from './formater.js'
|
||||
import request from '../../utils/request.js'
|
||||
import settings from '../../lib/settings.js'
|
||||
import _ from 'lodash'
|
||||
|
||||
const EnkaApi = 'https://enka.network/api/zzz/uid/'
|
||||
const config = settings.getConfig('config')
|
||||
const EnkaApi = _.get(config, 'enkaApi') ?? 'https://enka.network/api/zzz/uid/'
|
||||
|
||||
export function parsePlayerInfo(SocialDetail = {}) {
|
||||
const ProfileDetail = SocialDetail.ProfileDetail || {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue