Skip to content

The logic of from to most

Insane edited this page Sep 9, 2015 · 1 revision

from / to / most

假设数据id从1 到 100 没有from 和to的情况 75~100

from=50,返回51-76 to=50,返回24-49

most在前面的基础上生效,默认为25


家园互动的结果id从小到大排列


公告,作业的结果id从大到小排列


刷卡日志的按照时间戳从新到旧排列, from、to参数传入时间戳

!important 最新修改

如果from, to之和大于1388534400000(大于2014-01-01的一个时间戳), 则按照时间戳范围来返回数据, 小于这个值就认为是按照id返回。

Clone this wiki locally