文档
测试

单次运动数据明细

POST
/api/play/info

接口描述

运动结束时请求,获取本次运动数据

请求头

参数名
类型
描述
必填
token
string
用户token
必填

请求参数

参数名
类型
描述
必填
user_play_id
int
运动ID
必填
need_format
bool
是否格式化 默认 true
必填

响应参数

参数名
类型
描述
必填
code
int
响应状态值
必填
msg
string
响应信息
必填
data
Object
响应数据
必填
user_play
Object
用户运动数据
必填
user_play_id
int
本次运动ID
必填
start_time
int
运动开始时间 (s)
必填
stop_time
int
运动结束时间 (s) 计算公式:start_time+duration
必填
created_uid
int
创建人ID
必填
speed_max
int
最高转速,rpm
必填
circle_max
int
圈数 圈
必填
endurance_max
int
耐力(s),转速超过1万转每分的持续时间
必填
duration
int
运动时间(s 计算公式:count(speed_detail)*1000/interval
必填
duration_format
string
格式化持续时间
必填
section_duration
Object
区间转速
必填
section_duration
int
持续时间(s)
必填
start_section
int
区间开始转速
必填
stop_section
int
区间结束转速
必填
percentage
int
占比
必填
user_play_detail
Object
转速时刻明细
必填
moment
int
时间(ms)毫秒
必填
speed
int
转速
必填
compare_last
int
相对于上次,0:无变化,-1:降低,1:上升, 按最高转速比较
必填
distance
float
运动距离(m)
必填
distance_format
string
格式化运动距离(km)
必填
distance_unit
string
运动距离单位
必填
start_time_format
string
运动开始时间,格式化
必填
stop_date_format
string
运动结束时间,格式化
必填

说明 / 示例

原始数据: ![image.png](https://cos.easydoc.net/80953943/files/kjsbzfj4.png) 格式化数据: ![image.png](https://cos.easydoc.net/80953943/files/kjsfryys.png)