Skip to content

Commit

Permalink
fix: 辅助填写中API地址拼接错误
Browse files Browse the repository at this point in the history
  • Loading branch information
tongyifan authored Jun 18, 2019
1 parent 3ce32b6 commit 7d54ba8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +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){
let sid = url.match(/tt\d+/)[0];
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 Down

0 comments on commit 7d54ba8

Please sign in to comment.