mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-09 17:27:27 +08:00
[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:
@@ -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():
|
||||
# 异常日志,不处理
|
||||
|
||||
Reference in New Issue
Block a user