mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-13 03:27:26 +08:00
[Enhance] Link Play 2.0 e.t.c.
- For Arcaea 5.10.1(c) - Add support for Link Play 2.0. - New partners "Luna & Ilot" and "Eto & Hoppe" - Add support for the skill of "Eto & Hoppe". - Add support for refreshing ratings of Recent 30 via API and webpage. Note: This is a bug testing version.
This commit is contained in:
@@ -8,6 +8,7 @@ from core.bundle import BundleDownload
|
||||
from core.download import DownloadList
|
||||
from core.error import RateLimit
|
||||
from core.item import ItemCharacter
|
||||
from core.notification import NotificationFactory
|
||||
from core.sql import Connect
|
||||
from core.system import GameInfo
|
||||
from core.user import UserOnline
|
||||
@@ -28,6 +29,15 @@ def game_info():
|
||||
return success_return(GameInfo().to_dict())
|
||||
|
||||
|
||||
@bp.route('/notification/me', methods=['GET']) # 通知
|
||||
@auth_required(request)
|
||||
@arc_try
|
||||
def notification_me(user_id):
|
||||
with Connect(in_memory=True) as c_m:
|
||||
x = NotificationFactory(c_m, UserOnline(c_m, user_id))
|
||||
return success_return([i.to_dict() for i in x.get_notification()])
|
||||
|
||||
|
||||
@bp.route('/game/content_bundle', methods=['GET']) # 热更新
|
||||
@arc_try
|
||||
def game_content_bundle():
|
||||
|
||||
Reference in New Issue
Block a user