Skip to content

Commit

Permalink
Merge: Merge pull request #25 from issaccv/patch-1
Browse files Browse the repository at this point in the history
fix: 辅助填写中API地址拼接错误
  • Loading branch information
tongyifan authored Jun 18, 2019
2 parents 8ab22f0 + 7d54ba8 commit afa5283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ function get_external_data() {
var external_api_base_url = "https://api.issacc.bid/infogen";
var api_url = "";
if (url.search("imdb.com") !== -1){
api_url = external_api_base_url + "?site=douban&sid=" + /tt(\d+)/i.exec(url);
api_url = external_api_base_url + "?site=douban&sid=" + /tt(\d+)/i.exec(url)[0];
}else{
api_url = external_api_base_url + "?url=" + url;
}
Expand All @@ -570,4 +570,4 @@ function get_external_data() {
}
});
}
}
}

0 comments on commit afa5283

Please sign in to comment.