Integration Notes

接口文档

接口地址、参数示例和鉴权要求。

接入说明

域名、cookie 和数据存储。

独立系统
1. 管理后台独立访问 `index.php`,不再依赖苹果 CMS 控制器和模板。
2. 域名:独立系统 `user.jlen.top`,苹果 CMS `cms.jlen.top`。
3. `auth_status` 会读取 `.jlen.top` 共享 cookie 来判断 `cms.jlen.top` 的登录状态。
4. 苹果 CMS 的 cookie domain 需要设置为 `.jlen.top`。
5. 在线、公告、仪表盘统计写入当前目录 `storage/`。

心跳上报

请求地址、鉴权方式和示例参数。

API
请求地址https://user.jlen.top/api.php?action=heartbeat
鉴权
示例参数{"user_id":123,"device_id":"android-001","platform":"android","app_version":"1.0.0","manufacturer":"Xiaomi","model":"Xiaomi 14","android_release":"14","android_sdk":"34","route":"player","vod_id":123,"sid":1,"nid":2}

公告列表

请求地址、鉴权方式和示例参数。

API
请求地址https://user.jlen.top/api.php?action=notices
鉴权
示例参数?app_version=1.0.0&user_id=123&device_id=android-001

登录状态

请求地址、鉴权方式和示例参数。

API
请求地址https://user.jlen.top/api.php?action=auth_status
鉴权
示例参数读取 .jlen.top 共享 cookie

当前用户信息

请求地址、鉴权方式和示例参数。

API
请求地址https://user.jlen.top/api.php?action=me
鉴权否,基于共享 cookie
示例参数返回当前登录用户资料

在线统计

请求地址、鉴权方式和示例参数。

API
请求地址https://user.jlen.top/api.php?action=online
鉴权是,Header: X-AppCenter-Token
示例参数

仪表盘摘要

请求地址、鉴权方式和示例参数。

API
请求地址https://user.jlen.top/api.php?action=summary
鉴权是,Header: X-AppCenter-Token
示例参数