wgt-node-utils 1.2.30 → 1.2.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "1.2.30",
3
+ "version": "1.2.32",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -854,8 +854,8 @@ class wgtNodeUtils {
854
854
  let siteData;
855
855
  if (type === 'content') {
856
856
  siteData = res.data && res.data.data && res.data.data;
857
- } else if (type === 'novle') {
858
- siteData = res.data.join(',').map(item => item.trim()).filter(item => item !== '');
857
+ } else if (type === 'novel') {
858
+ siteData = res.data && res.data.data && res.data.data.join(',').map(item => item.trim()).filter(item => item !== '');
859
859
  }
860
860
  // 如果未获取到数据,使用en做为默认数据
861
861
  if (!siteData) {