mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
#心海排名 内群排名说明显示排名人数,调整排名人数设置的位置 (#437)
This commit is contained in:
parent
f5f6319ea1
commit
de5951f008
@ -8,15 +8,15 @@ export const avatarProfile = true
|
||||
// 群面板排名
|
||||
export const groupRank = false
|
||||
|
||||
// 可选值5~30,建议15。设置高排名人数会导致渲染图片速度加长,发送缓慢
|
||||
export const rankNumber = 15
|
||||
|
||||
// 使用【#上传深渊】功能取代【#深渊】功能,默认关闭
|
||||
export const uploadAbyssData = false
|
||||
|
||||
// 使用【#面板练度统计】功能取代【#练度统计】功能,默认关闭
|
||||
export const profileStat = false
|
||||
|
||||
// 可选值5~30,建议15。设置高排行人数会导致渲染图片速度加长,发送缓慢
|
||||
export const rankNumber = 15
|
||||
|
||||
// 老婆查询
|
||||
export const avatarWife = true
|
||||
|
||||
|
@ -35,6 +35,14 @@ export const cfgSchema = {
|
||||
type: 'num',
|
||||
desc: '参与排名的限制条件:1:无限制 2:有CK 3:有16个角色或有CK 4:有御三家(安柏&凯亚&丽莎)或有CK 5:有16个角色+御三家或有CK。 若改变设置请根据情况决定是否需要【#重置排名】'
|
||||
},
|
||||
rankNumber: {
|
||||
title: '排名人数',
|
||||
key: '排名人数',
|
||||
type: 'num',
|
||||
def: 15,
|
||||
input: (n) => Math.min(30, Math.max(5, (n * 1 || 15))),
|
||||
desc: '可选值5~30,建议15。设置高排名人数会导致渲染图片速度加长,发送缓慢'
|
||||
},
|
||||
uploadAbyssData: {
|
||||
title: '上传深渊',
|
||||
key: '深渊',
|
||||
@ -49,14 +57,6 @@ export const cfgSchema = {
|
||||
oldCfgKey: 'profile.stat',
|
||||
desc: '使用【#面板练度统计】功能取代【#练度统计】功能,默认关闭'
|
||||
},
|
||||
rankNumber: {
|
||||
title: '排行人数',
|
||||
key: '排行人数',
|
||||
type: 'num',
|
||||
def: 15,
|
||||
input: (n) => Math.min(30, Math.max(5, (n * 1 || 15))),
|
||||
desc: '可选值5~30,建议15。设置高排行人数会导致渲染图片速度加长,发送缓慢'
|
||||
},
|
||||
avatarWife: {
|
||||
title: '老婆查询',
|
||||
key: '老婆',
|
||||
|
@ -1,6 +1,6 @@
|
||||
import lodash from 'lodash'
|
||||
import moment from 'moment'
|
||||
import { Cfg, Common, Data, } from '../components/index.js'
|
||||
import { Cfg, Common, Data } from '../components/index.js'
|
||||
|
||||
export default class ProfileRank {
|
||||
constructor (data) {
|
||||
@ -193,6 +193,7 @@ export default class ProfileRank {
|
||||
await Data.redisSet(`miao:rank:${groupId}:cfg`, ret, 3600 * 24 * 365)
|
||||
ret.limitTxt = rankLimitTxt[rankLimit]
|
||||
ret.time = moment(new Date(ret.timestamp)).format('MM-DD HH:mm')
|
||||
ret.number = Cfg.get('rankNumber', 15)
|
||||
return ret
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,9 @@
|
||||
<li>
|
||||
<strong>排名参与条件:</strong> {{rankCfg.limitTxt}}
|
||||
</li>
|
||||
<li>
|
||||
<strong>排名人数:</strong> {{rankCfg.number}} (可由管理员在#喵喵设置 内设置,范围5~30)
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user