Commit 385a225d by 马黎滨

凤凰新闻热榜排名修复

parent eb052a3f
......@@ -42,7 +42,7 @@ public class FengHuangSearchCrawler {
JSONArray jsonArray = JSONObject.parseObject(htmlBody).getJSONObject("data").getJSONArray("list");
if(jsonArray != null){
for (int i=0; i<jsonArray.size(); i++){
Integer rank = i+1;
Integer rank = i+1+(page-1)*15;
String name = jsonArray.getJSONObject(i).getJSONObject("hotLabel").getString("desp");
String topicLead = jsonArray.getJSONObject(i).getString("title");
String fenghuangUrl = jsonArray.getJSONObject(i).getJSONObject("link").getString("weburl");
......
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