sbd-npm 1.1.76 → 1.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/menu.js CHANGED
@@ -74,6 +74,7 @@ const MenuList = [
74
74
  {'key': 'macro_shibor', 'name': 'Shibor 拆放利率', 'url': '/41eaa74e3c5a9102b3f0b736090872e4'},
75
75
  {'key': 'macro_pmi', 'name': '制造业采购经理指数(PMI)', 'url': '/6669696b194ae77d596371139e6b53a7'},
76
76
  {'key': 'macro_new_investor', 'name': '新增投资者', 'url': '/2268c61c6d62cdc8c1c7143aa524e2f1'},
77
+ {'key': 'macro_gold', 'name': '黄金ETF(GLD)', 'url': '/584b9ceb0c85571831f7211903147d47'},
77
78
  ]
78
79
  },
79
80
  {
@@ -191,6 +192,7 @@ const MenuList = [
191
192
  {'key': 'snowball_trend', 'name': '自选趋势', 'url': '/08c40d908dd87e29a607b6945309edf0'},
192
193
  {'key': 'snowball_user', 'name': '用户列表', 'url': '/97339b8453883dd27e6087ae7db6f62a'},
193
194
  {'key': 'snowball_tweet', 'name': '推文', 'url': '/9a9aef7fced3f15ff7647de75d70798c'},
195
+ {'key': 'snowball_red_packet', 'name': '红包数据', 'url': '/23d88182f12431fe67f658b725cbaf1d'},
194
196
  {'key': 'snowball_tool', 'name': '搜索工具', 'url': '/ac88ee85f27e11aa06f2b8f46b03a0eb'},
195
197
  ]
196
198
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.1.76",
3
+ "version": "1.1.79",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -238,7 +238,7 @@ const Util = {
238
238
  html.push("<td>", (item["pe_ttm"] ? item["pe_ttm"] : item["pe"]), "</td>");
239
239
  html.push("<td>", (item["market_capital"] ? (Util.to_float(item["market_capital"], 2) + "亿") : "--"), "</td>");
240
240
  html.push("<td>", Util.industry_url(item["code"], item["industry"]), "</td>");
241
- html.push("<td>", Util.map_url(item["province_city"] ? item["province_city"] : item["area"]), "</td>");
241
+ html.push("<td>", Util.map_url((item["province_city"] && item["province_city"] !== "None") ? item["province_city"] : item["area"]), "</td>");
242
242
  let price = item["stock_price"] ? item["stock_price"] : item["price"];
243
243
  let pre_price = item["pre_price"] ? item["pre_price"] : (item["previous_price"] ? item["previous_price"] : 0)
244
244
  if (pre_price > 0) {
@@ -925,16 +925,16 @@ const Util = {
925
925
  let public_date = j["public_date"] > 0 ? Util.seconds_to_format(j["public_date"], "%Y-%m-%d") : "--";
926
926
  let issue_date = j["issue_date"] > 0 ? Util.seconds_to_format(j["issue_date"], "%Y-%m-%d") : "--";
927
927
  _html.push("<tr title='最后更新时间: ", Util.seconds_to_format(j["update_time"], "%Y-%m-%d"), "' class='info'><th colspan='12' text-align='center'>基金概况</th></tr>");
928
- _html.push("<tr><td colspan='3'>基金代码</td><td colspan='3'>", Util.pack_html_link('https://fund.jrj.com.cn/archives,' + j["fund_code"] + '.shtml', j["fund_code"]), "</td><td colspan='2'>基金名</td><td colspan='4'>", Util.pack_html_link('https://fund.jrj.com.cn/archives,' + j["fund_code"] + ',jjgk.shtml', j["fund_name"]), "</td></tr>");
928
+ _html.push("<tr><td colspan='3'>基金代码</td><td colspan='3'>", Util.pack_html_link('https://fund.eastmoney.com/' + j["fund_code"] + '.html', j["fund_code"]), "</td><td colspan='2'>基金名</td><td colspan='4'>", Util.pack_html_link('https://fundf10.eastmoney.com/jbgk_' + j["fund_code"] + '.html', j["fund_name"]), "</td></tr>");
929
929
  _html.push("<tr><td colspan='3'>基金类型</td><td colspan='3'>", j["fund_type"], "</td><td colspan='2'>投资类型</td><td colspan='4'>", j["invest_type"], "</td></tr>");
930
930
  _html.push("<tr><td colspan='3'>单位净值</td><td colspan='3'>", net, "</td><td colspan='2'>资产规模</td><td colspan='4'>", assets, "</td></tr>");
931
931
  _html.push("<tr><td colspan='3'>成立日期</td><td colspan='3'>", public_date, "</td><td colspan='2'>发行日期</td><td colspan='4'>", issue_date, "</td></tr>");
932
- _html.push("<tr><td colspan='3'>基金管理人</td><td colspan='3'>", j["administrator"], "</td><td colspan='2'>基金经理</td><td colspan='4'>", j["managers"], "</td></tr>");
932
+ _html.push("<tr><td colspan='3'>基金管理公司</td><td colspan='3'>", j["administrator"], "</td><td colspan='2'>基金经理</td><td colspan='4'>", j["managers"], "</td></tr>");
933
933
  _html.push("<tr><td colspan='4'>基金托管人</td><td colspan='8'>", j["custodian"], "</td></tr>");
934
934
  _html.push("<tr><td colspan='4'>经办律师事务所</td><td colspan='8'>", j["lawyer"], "</td></tr>");
935
935
  _html.push("<tr><td colspan='4'>会计师事务所</td><td colspan='8'>", j["accounting"], "</td></tr>");
936
936
  _html.push("<tr><td colspan='4'>注册地址</td><td colspan='8'>", Util.map_url(j["location"], j["location"]), "</td></tr>");
937
- let fund_stock_url = "https://fund.jrj.com.cn/archives," + j["fund_code"] + ".shtml";
937
+ let fund_stock_url = "https://fund.eastmoney.com/" + j["fund_code"] + ".html";
938
938
  if (j["type"] === 2) {
939
939
  fund_stock_url = "http://fund.eastmoney.com/f10/ccmx_" + j["fund_code"] + ".html";
940
940
  }
package/.npmignore DELETED
@@ -1 +0,0 @@
1
- sbd-npm.md