Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AutoEx-Lib/src/main/java/com/bolex/autoEx/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class API {

public final static String SEARCH_URL ="http://api.stackexchange.com/2.2/search/advanced?site=stackoverflow&accepted=true";
public final static String SEARCH_URL ="https://api.stackexchange.com/2.3/search/advanced?site=stackoverflow&accepted=true";
public final static String PAGESIZE ="&pagesize=";
public final static String Body ="&body=";

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ dependencies {

- 基于搜索引擎扩展结果,避免精准匹配的异常有时候出不来的问题。要考虑墙的问题(google? bing?)

## 修复说明

- 将 Stack Overflow API 地址从 `http://api.stackexchange.com/2.2/` 升级为 `https://api.stackexchange.com/2.3/`,修复因 HTTP 协议和旧版 API 导致无法正常获取结果的问题。




Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class API {

public final static String SEARCH_URL ="http://api.stackexchange.com/2.2/search/advanced?site=stackoverflow&accepted=true";
public final static String SEARCH_URL ="https://api.stackexchange.com/2.3/search/advanced?site=stackoverflow&accepted=true";
public final static String PAGESIZE ="&pagesize=";
public final static String Body ="&body=";

Expand Down