sbd-npm 1.5.55 → 1.5.56

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 (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.55",
3
+ "version": "1.5.56",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/util.js CHANGED
@@ -3337,18 +3337,18 @@ const Util = {
3337
3337
  */
3338
3338
  pack_holder_num: function (item) {
3339
3339
  let holder_info = "--";
3340
- if (item.code && !Util.is_cn(item.code)) {
3341
- return holder_info;
3342
- }
3343
3340
  if (item.holder_num && item.holder_num > 0) {
3344
3341
  if (item.pre_holder_num && item.pre_holder_num > 0) {
3345
3342
  holder_info = Util.digit_compare_trend(item.holder_num, item.pre_holder_num);
3346
3343
  } else {
3347
- holder_info = Util.digit_compare_trend(item.holder_num, 0);
3344
+ holder_info = item.holder_num;
3348
3345
  }
3349
3346
  }
3350
- let holder_url = "/stock/" + item.code + "?tab=holder_data";
3351
- return Util.pack_html_link(holder_url, holder_info);
3347
+ if (item.code && Util.is_cn(item.code)) {
3348
+ let holder_url = "/stock/" + item.code + "?tab=holder_data";
3349
+ return Util.pack_html_link(holder_url, holder_info);
3350
+ }
3351
+ return holder_info
3352
3352
  },
3353
3353
 
3354
3354
  /**