chore: obApi

This commit is contained in:
手瓜一十雪 committed 2024-08-09 16:04:28 +08:00
1 parent 28574c1065
commit f3dc7da1c8
22 files changed
+805 -86

No files matched your search

+7
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;
}