Lost-MSth 7324c9bd76 [Enhance] API song ranklist
- Add an API endpoint for getting the rank list of a song's chart #81
- Make the `run.bat` script pause when meeting an error #82
2022-12-19 20:20:31 +08:00
2022-07-29 21:31:38 +08:00
2020-09-12 21:36:53 +08:00
2022-09-10 20:34:21 +08:00
2020-09-11 17:09:43 +08:00
2022-11-10 18:32:53 +08:00

Arcaea-server

一个微型的Arcaea本地服务器 A small local server for Arcaea

简介 Introduction

这是基于Python以及Flask的微型本地Arcaea服务器可以模拟游戏的主要功能。这可能是我第一次写这种大程序若有不妥之处敬请谅解。

本程序主要用于学习研究,不得用于任何商业行为,否则后果自负,这不是强制要求,只是一个提醒与警告。

This is a small local Arcaea server based on Python and Flask, which can simulate the main functions of the game. This may be the first time I have written such a large program. Please understand if there is something wrong with it.

This procedure is mainly used for study and research, and shall not be used for any commercial activities, otherwise the consequences will be borne by oneself. This is not a mandatory requirement, just a reminder and warning.

虽然看起来很蠢,但是可以用! It looks stupid, but it works!

特性 Features

有以下 We have

  • 登录、注册 Login and registration
  • 多设备登录 Multi device login
  • 成绩上传 Score upload
  • PTT
  • 世界排名 Global rank
  • 排名 Rank
  • 段位系统 Course system
  • Link Play
  • 好友系统 Friends
  • 数据同步 Data synchronization
  • 爬梯 Climbing steps
  • 自定义世界模式 Customizable World Mode
  • 自定义歌曲下载 Customizable songs download
  • 单曲和曲包购买(没啥用) Single songs and song packs purchase(useless)
  • 奖励系统 Present system
  • 兑换码系统 Redeem code system
  • 角色系统 Character system
  • 全剧情解锁 Unlock all the stories
  • 后台查询 Background search
  • 后台自定义信息 Customize some things in the background
  • 成绩校验 Score check
  • 下载校验 Download check
  • 服务器日志 Server log

没有以下 We don't have

  • 服务器安全性保证 Server security assurance

可能有问题 There may be problems

  • Recent 30
  • 一些歌曲的解锁 Some songs' unlocking
  • 同设备多共存登录 Multiple app logins on the same device

说明 Statement

只是很有趣,用处探索中。
It is just so interesting. What it can do is under exploration.

下载 Download

这里 Here

Arcaea-CN official
Arcaea-lowi.ro
Arcaea-RhyDown

更新日志 Update log

只保留最新版本 Only keep the latest version.

提醒:更新时请注意保留原先的数据库,以防数据丢失。

Tips: When updating, please keep the original database in case of data loss.

Version 2.10.1

  • 适用于Arcaea 4.1.4版本 For Arcaea 4.1.4
  • 新搭档 天音 已解锁 Unlock the character Amane.
  • 天音技能提供支持 Add support for the skill of Amane.
  • 现在配置文件可以是含有部分选项的文件或模块 At present the setting file can be a module or a file with some of options.
  • 添加waitressgevent的部署方案支持,并支持日志记录 Add deployment mode waitress and gevent, and add support for the info log recording of them.
  • songlist添加解析器以指定可下载的文件 Add a parser for songlist to specify downloadable files.
  • 重构数据库初始化和数据迁移部分 Code refactoring for database initialization and migration.
  • 限制用户下载频率将使用第三方限制器,替代数据库 Add a custom limiter and use it for limiting users' download rate instead of using database.

    现在需要limits模块
    Now limits module is required.

  • 为登录和API登录添加限制器 Add limiter for login and API login.
  • sqlite3数据库调整为WAL模式并增大缓存 Change journal mode to WAL and enlarge cache size for sqlite3 database.
  • 将下载token放入内存中而不是文件数据库中 Put download token in memory database instead of filesystem database.
  • 加速best_score表多次查询,表现为歌曲排行榜查询性能提升 Accelerate multiple querying in best_score table, which results in performance improvement of song ranklist query.
  • 优化歌曲下载部分 Make some optimization for downloading songs.
  • 修复更新recent 10时可能出现的死循环问题 Fix a bug that there is a endless loop in calculating recent 10 updating. (due to 6fcca17918)
  • 修复课题模式成绩没有rating的问题 Fix a bug that scores in course mode cannot calculate rating.
  • 修正搭档数值 Fix a character's value.
  • 邮箱长度最大限制提升到64 Change the email max length to 64.
  • 新增API接口来获取用户身份与权限 Add a method of API for getting users' roles and powers.
  • 新增API接口来修改用户信息 Add a method of API to change the user's info.
  • 为API的GET请求添加query参数支持 Add support for the query param in API's GET requests.
  • 修复API的best30接口曲目无数据导致出错的问题 Fix a bug that best30 of API cannot have scores whose songs are not in database.
  • 修复API的recent30接口用户成绩数量不足导致出错的问题 Fix a bug that users with no recent scores cannot get recent30 via API.

运行环境与依赖 Running environment and requirements

  • Windows/Linux/Mac OS/Android...
  • Python >= 3.6
  • Flask module >= 2.0, Cryptography module >= 3.0.0, limits >= 2.7.0
  • Charles, IDA, proxy app... (optional)

使用说明 Instruction for use

中文
English

注意 Attentions

中文
English

Q&A

中文/English

鸣谢 Thanks

歌曲数据库来自 Using song database from BotArcAPI releases

从v2.9开始不再提供歌曲数据
Since v2.9, song data will not be provided.

网站图标来自 Using favicon from black fate - てんてん - pixiv

联系方式 Contact

如有必要,可以联系本人 Contact me if necessary
邮箱 Emailth84292@foxmail.com

支持一下 Support me

生活不易。 Life is not easy.
支付宝 Alipay
微信 WeChat

使用许可 Use license

MIT © Lost

Description
No description provided
Readme MIT 2 MiB
Languages
Python 90.9%
HTML 8.6%
CSS 0.5%