mirror of
https://github.com/Remik1r3n/maimaiDX-Api.git
synced 2025-06-17 06:57:28 +08:00
我想通了
This commit is contained in:
parent
25ba03e9fb
commit
15045b6528
@ -79,7 +79,7 @@ def maimaiUserMusicDetailToDivingFishFormat(userMusicDetailList) -> list:
|
||||
divingFishList.append({
|
||||
'achievements': (currentMusicDetail['achievement'] / 10000), # 水鱼的成绩是 float 而非舞萌的 int
|
||||
'title': currentMusicTitle,
|
||||
'type': notesType, # 我不理解这为什么不能在后端判断
|
||||
'type': notesType,
|
||||
'level_index': currentMusicDetail['level'],
|
||||
'fc': COMBO_ID_TO_NAME[currentMusicDetail['comboStatus']],
|
||||
'fs': SYNC_ID_TO_NAME[currentMusicDetail['syncStatus']],
|
||||
|
@ -14,11 +14,12 @@ from loguru import logger
|
||||
import argparse
|
||||
try:
|
||||
parser = argparse.ArgumentParser(description="舞萌DX AimeDB 服务器模拟实现")
|
||||
parser.add_argument("userId", type=int, help="用户 ID")
|
||||
args = parser.parse_args()
|
||||
DUMMY_USER_ID = args.userId
|
||||
except:
|
||||
logger.warning("未传入用户 ID,使用默认值")
|
||||
#parser.add_argument("userId", type=int, help="用户 ID")
|
||||
#args = parser.parse_args()
|
||||
#DUMMY_USER_ID = args.userId
|
||||
raise Exception("未传入用户 ID")
|
||||
except Exception as e:
|
||||
logger.warning(f"{e},未传入用户 ID,使用默认值")
|
||||
DUMMY_USER_ID = 1
|
||||
|
||||
from fastapi import (
|
||||
|
Loading…
x
Reference in New Issue
Block a user