mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
feat: panel
This commit is contained in:
parent
35c8c95b80
commit
27171c5727
77 changed files with 2126 additions and 312 deletions
14
lib/convert/rank.js
Normal file
14
lib/convert/rank.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const RANK_MAP = {
|
||||
4: 'S',
|
||||
3: 'A',
|
||||
2: 'B',
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取星级对应的字母
|
||||
* @param {string | number} id
|
||||
* @returns {string}
|
||||
*/
|
||||
export function getRankChar(id) {
|
||||
return RANK_MAP[id] || '';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue