Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.07 KB

README-CN.md

File metadata and controls

59 lines (40 loc) · 2.07 KB


English | 中文

百分百鲜橙汁 统计数据

百分百鲜橙汁 统计数据

本项目的起点是 一个远古时期的个人统计查询项目,旧项目缺乏维护,已经难以满足其功能。
本项目是它的增强版本。

羽希在 2021 年初将其重新整理并拓展到全球统计,部署到 100oj.com 使其成为众多橙汁工具的一部分。

render0

render1

render5

render7

部署

直接部署 php

  1. PHP 7.0 或更高版本。
  2. config.php 填入你的 SteamAPI Key 。你可以在 这里 获取。
  3. (可选) 如果你要使用 renders/ 下的内容来出图,请为 PHP 安装 ImageMagick 拓展

3.1 检查 php 版本

php -v

3.2 启用 gd

sudo apt-get install php<版本号>-gd,
例如: sudo apt-get install php8.1-gd.

3.3 安装 imagick

sudo apt-get install php<版本号>-imagick,
例如: sudo apt-get install php8.1-imagick.

或者用 Docker

OrangeJuice-Stats-Docker.

公共实例

全球统计的入口是 global.php

个人统计的入口是 player.php

个人统计生成图片的入口是 render.php
https://interface.100oj.com/stat/render.php?steamid=<steamid>
https://interface.100oj.com/stat/render.php?steamid=<steamid>&limit=<rows>&render=<typeid>

必填的参数是 steamid=你的steam64位id,形如 7656xxxxxxxxxxxxx.
可选的参数有 limit=角色数量
render=使用的样式编号 样式编号可以填 0 到 8 的整数。

License

沿用旧项目的 GNU Affero General Public License v3.0