[Enhance] Support Maya's Awaken

- For Arcaea 6.10.1
- Add an endpoint for Maya's awaken. #229
- Add the new character "Hikari & Tairitsu[ANS] (Breakthrough)". (values maybe incorrect)
This commit is contained in:
Lost-MSth
2025-10-30 23:31:58 +08:00
parent 65f6d212fe
commit 52bb834a8a
5 changed files with 106 additions and 18 deletions

View File

@@ -5,8 +5,9 @@ from flask import Blueprint, jsonify, request
from werkzeug.datastructures import ImmutableMultiDict
from core.bundle import BundleDownload
from core.character import UserCharacter
from core.download import DownloadList
from core.error import RateLimit, ArcError
from core.error import ArcError, RateLimit
from core.item import ItemCharacter
from core.notification import NotificationFactory
from core.sql import Connect
@@ -123,6 +124,21 @@ def insight_complete(user_id, pack_id):
})
@bp.route('/unlock/me/awaken_maya', methods=['POST'])
@auth_required(request)
@arc_try
def awaken_maya(user_id):
with Connect() as c:
ch = UserCharacter(c, 71, UserOnline(c, user_id))
ch.select_character_info()
ch.character_uncap()
return success_return({
'user_id': user_id,
'updated_characters': [ch.to_dict()]
})
@bp.route('/applog/me/log', methods=['POST'])
def applog_me():
# 异常日志,不处理