瀏覽代碼

获取当前直播商户数分页调整

吴志根 3 年之前
父節點
當前提交
ecb19846ca
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/dsb/com/cnd3b/restcontroller/publicmethod/live/live.java

+ 4 - 4
src/dsb/com/cnd3b/restcontroller/publicmethod/live/live.java

@@ -73,10 +73,10 @@ public class live extends Controller {
             double pageTotal = Math.ceil((double) flivecount / (double) pageSize);//×ÜÒ³Êý
             int startindex = (pageNumber - 1) * pageSize;
             int endindex = (pageNumber) * pageSize - 1;
-            if (pageNumber >= pageTotal) {
-                startindex = flivecount - pageSize;
-                endindex = flivecount - 1;
-            }
+//            if (pageNumber >= pageTotal) {
+//                startindex = flivecount - pageSize;
+//                endindex = flivecount - 1;
+//            }
             for (int i = 0; i < flivecount; i++) {
                 if (startindex <= i && i <= endindex) {
                     newliverows.add(liverows.get(i));