fix:修改economictimes获取指数详情bug

This commit is contained in:
xiaoliuhu
2024-04-20 21:32:52 +08:00
parent 37bb619e24
commit fbc7815365

View File

@@ -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();