Sfoglia il codice sorgente

搜索资源平台的page从0开始,0表示第一页

yaobo 7 anni fa
parent
commit
fd2bf29620

+ 1 - 1
src/main/java/cn/efunbox/audio/controller/AudioController.java

@@ -139,7 +139,7 @@ public class AudioController {
                 page = "1";
             if(size==null || size.length()<1)
                 size = "10";
-            res = audioHttp.SearchByName(name, Integer.valueOf(type), Integer.valueOf(page), Integer.valueOf(size));
+            res = audioHttp.SearchByName(name, Integer.valueOf(type), Integer.valueOf(page)+1, Integer.valueOf(size));
 //        System.out.println(res);
             Map map = JSONObject.parseObject(res);
             try{