chore: obApi

This commit is contained in:
手瓜一十雪
2024-08-09 16:04:28 +08:00
parent 518ff48e97
commit 6605d3812a
22 changed files with 805 additions and 86 deletions

View File

@@ -0,0 +1,7 @@
// QQ等级换算
import { QQLevel } from '@/core/entities';
export function calcQQLevel(level: QQLevel) {
const { crownNum, sunNum, moonNum, starNum } = level;
return crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum;
}