Commit 13faa616 authored by yanzg's avatar yanzg

异常处理显示

parent bb594c92
......@@ -106,8 +106,8 @@ public class CookiesHelper {
for (int i = 0; i <= page; i++) {
String itemKey = String.format(TAG_FORMAT, key, i);
int start = i * ITEM_MAX_SIZE;
int size = Math.min(page - start, ITEM_MAX_SIZE);
int end = start + size - 1;
int size = Math.min(toValue.length() - start, ITEM_MAX_SIZE);
int end = start + size;
String itemValue = toValue.substring(start, end);
addCookie(response, itemKey, itemValue);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment