sbd-npm 1.4.78 → 1.4.80

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.
Files changed (3) hide show
  1. package/constant.js +1 -1
  2. package/package.json +1 -1
  3. package/util.js +9 -1
package/constant.js CHANGED
@@ -149,7 +149,7 @@ const MenuList = [
149
149
  {'key': 'portfolio_zeng', 'name': '老曾阿牛', 'url': '/0x2cf53b473b916e1d8b9998de00bb782171bb2630'},
150
150
  {'key': 'portfolio_dao', 'name': '专注成长的股事笔记', 'url': '/0xf9d3664538c43bf7f886674abe7af9710aab82ec'},
151
151
  {'key': 'portfolio_vegetable', 'name': 'Veget', 'url': '/0x671dd9dcfca7dbc220c8164c92a74d2c561c6464'},
152
- {'key': 'portfolio_follow', 'name': '跟我走吧14', 'url': '/0x4aa68e74a66297c0ece1bb05fad20c32ee1db9e4'},
152
+ {'key': 'portfolio_tianjin', 'name': '天津股侠', 'url': '/0xb8428e42237a7485a787e2ab1b5ae0f057258f18'},
153
153
  {'key': 'portfolio_cloud', 'name': '心似白云常自在', 'url': '/0x9ea6081b57418a7f987775631043f7f924e25cff'},
154
154
  {'key': 'portfolio_peng', 'name': '吴小朋同学', 'url': '/0x4f1a316c05731e365ec1b7ef454d98206fa973f6'},
155
155
  {'key': 'portfolio_star50', 'name': '科创50', 'url': '/0x378b2601d83c467f81f1d4e323c8bfbc72f6cc0d'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.4.78",
3
+ "version": "1.4.80",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/util.js CHANGED
@@ -22,6 +22,7 @@
22
22
  */
23
23
  const Util = {
24
24
 
25
+ version: "0",
25
26
  tips_token: "util-tips-div",
26
27
  load_token: "loading_div",
27
28
  interval_timer: null,
@@ -144,6 +145,12 @@ const Util = {
144
145
  document.title = page_title + " - " + d_title;
145
146
  }
146
147
  }
148
+
149
+ let document_html = document.documentElement.innerHTML;
150
+ let version_match = document_html.match(/\/sbd-npm@(\d+\.\d+\.\d+)\//);
151
+ if (version_match) {
152
+ Util.version = version_match[1];
153
+ }
147
154
  },
148
155
 
149
156
  /**
@@ -296,7 +303,8 @@ const Util = {
296
303
  url: url,
297
304
  headers: {
298
305
  'Cache-Control': 'no-cache',
299
- 'X-CSRF-TOKEN': Util.get_cookie('_csrf_token')
306
+ 'X-CSRF-TOKEN': Util.get_cookie('_csrf_token'),
307
+ 'X-Client-Version': Util.version
300
308
  },
301
309
  async: true,
302
310
  type: 'POST',