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

This commit is contained in:
gavin
2024-09-12 14:15:31 +08:00
parent 94d9aea2c8
commit bae645e3c6
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) {