Merge branch 'develop' into 'main'

修复官方查询时名称写死的问题

See merge request india/india_market_java!41
This commit is contained in:
Gavin g
2024-09-12 06:45:24 +00:00
2 changed files with 1 additions and 2 deletions

View File

@@ -73,7 +73,6 @@ public class NseIndiaRequest {
JSONObject data =jsonData.getJSONObject("priceInfo");
JSONObject json = new JSONObject();
json.put("company","Indian Phosphate Limited");
json.put("pricepercentchange",data.getString("pChange"));
json.put("stockType",stockType);
json.put("pricechange",data.getString("change"));

View File

@@ -242,7 +242,7 @@ public class MoneyApiController {
// Get data from nseindia
JSONObject json = NseIndiaRequest.stockByJYSFromHttp(stockType, symbol, moneyStock.getNseIndiaId());
json.put("id", moneyStock.getId());
json.put("company",moneyStock.getStockName());
return ServerResponse.createBySuccess(json);
} catch (Exception e) {