sbd-npm 1.5.4 → 1.5.5

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 +6 -2
package/constant.js CHANGED
@@ -160,11 +160,11 @@ const MenuList = [
160
160
  'icon': 'retweet',
161
161
  'menu': [
162
162
  {'key': 'portfolio_recommend', 'name': '关注', 'url': '/0x2da99e58e28de94b670c4200657ac7e26dd8dceb'},
163
+ {'key': 'portfolio_gao', 'name': '高大侠', 'url': '/0x44fe5ef98b6802a9e7a893a1dcc231031ef8683d'},
163
164
  {'key': 'portfolio_chen', 'name': '陈营长极品投资', 'url': '/0x3f8cbeeeb38138a626e935017a4cc25f47ce3dbe'},
164
165
  {'key': 'portfolio_stratagem', 'name': '上兵伐谋zgz', 'url': '/0x622a4a04d7a04e3b28c85a36500371ba28edea83'},
165
166
  {'key': 'portfolio_zeng', 'name': '老曾阿牛', 'url': '/0x2cf53b473b916e1d8b9998de00bb782171bb2630'},
166
167
  {'key': 'portfolio_dao', 'name': '专注成长的股事笔记', 'url': '/0xf9d3664538c43bf7f886674abe7af9710aab82ec'},
167
- {'key': 'portfolio_vegetable', 'name': 'Veget', 'url': '/0x671dd9dcfca7dbc220c8164c92a74d2c561c6464'},
168
168
  {'key': 'portfolio_tianjin', 'name': '天津股侠', 'url': '/0xb8428e42237a7485a787e2ab1b5ae0f057258f18'},
169
169
  {'key': 'portfolio_junk', 'name': 'HK破烂王', 'url': '/0xfa43c30e5399feb566fb9a8181c175b0af0dff7f'},
170
170
  {'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.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/util.js CHANGED
@@ -323,7 +323,11 @@ const Util = {
323
323
  },
324
324
  error: function (jqXHR, textStatus, errorThrown) {
325
325
  Util.hide_tips();
326
- if (!errorThrown) {
326
+ if (errorThrown) {
327
+ if (jqXHR.status) {
328
+ errorThrown += '(HTTP ' + jqXHR.status + ')';
329
+ }
330
+ } else {
327
331
  if ((textStatus === 'error' && jqXHR.status === 0) || !navigator.onLine) {
328
332
  errorThrown = "网络异常";
329
333
  } else if (textStatus === 'timeout') {
@@ -331,7 +335,7 @@ const Util = {
331
335
  } else if (textStatus === 'abort') {
332
336
  errorThrown = "请求被中止";
333
337
  } else if (jqXHR.status) {
334
- errorThrown = '请求失败(HTTP ' + jqXHR.status + '';
338
+ errorThrown = '请求失败(HTTP ' + jqXHR.status + ')';
335
339
  } else {
336
340
  errorThrown = "未知错误";
337
341
  }