修复分页参数过大

develop
Hoshi 2024-11-14 13:56:02 +08:00
parent 4d7217086a
commit 11bcf0b6b6
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ public class IndexServiceImpl implements IndexService {
log.info("user:{}", JSON.toJSONString(user));
param.put("userId", user.getUserId() == null ? ykUtil.getReqUserId() : user.getUserId());
param.put("page", 1);
param.put("limit", Integer.MAX_VALUE);
param.put("limit", 15); //理想要求 固定值15
log.info("get task list params:{}", JSON.toJSONString(param));
String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class);
log.info("result:{}",result);
JSONObject jsonObject = JSONArray.parseObject(result, JSONObject.class);