fix:修改economictimes获取指数详情bug
This commit is contained in:
@@ -57,7 +57,7 @@ public class EttechchartsApis {
|
||||
}
|
||||
//获取指数详情
|
||||
public static JSONObject getStockDetail(String indexid,String exchange,String keyName){
|
||||
String url = String.format("https://json.bselivefeeds.indiatimes.com/ET_Community/liveindices?outputtype=json&indexid=2365&exchange=47&company=true&pagesize=1&sortby=percentchange&sortorder=desc&callback=objIndices.getDataCB&language=",indexid,exchange);
|
||||
String url = String.format("https://json.bselivefeeds.indiatimes.com/ET_Community/liveindices?outputtype=json&indexid=%s&exchange=%s&company=true&pagesize=1&sortby=percentchange&sortorder=desc&callback=objIndices.getDataCB&language=",indexid,exchange);
|
||||
String str = get(url);
|
||||
if(StringUtils.isBlank(str)){
|
||||
return new JSONObject();
|
||||
|
||||
Reference in New Issue
Block a user