wgt-node-utils 1.2.43 → 1.2.44

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.43",
3
+ "version": "1.2.44",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -384,8 +384,8 @@ class wgtNodeUtils {
384
384
  else if (err.config) {
385
385
  console.error(`============${new Date().toLocaleString()}===========`);
386
386
  console.error(`${message} [${err.config.method}]: ${err.config.url}`);
387
- console.error(`request: {params: ${JSON.stringify(err.config.params)}, data: ${ err.config.data ? JSON.stringify(err.config.data) : ''}}`);
388
- console.error(`response: ${JSON.stringify( this.safeStringify(err.response.data))}`);
387
+ // console.error(`request: {params: ${JSON.stringify(err.config.params)}, data: ${ err.config.data ? JSON.stringify(err.config.data) : ''}}`);
388
+ // console.error(`response: ${JSON.stringify( this.safeStringify(err.response.data))}`);
389
389
 
390
390
  this.sendFeiShu(feiShuContent, receive_id, useSendFeiShu);
391
391
 
@@ -826,6 +826,8 @@ class wgtNodeUtils {
826
826
  siteData = res.data && res.data.data && res.data.data;
827
827
  } else if (type === 'novel') {
828
828
  siteData = res.data && res.data.data && res.data.data.split(',').map(item => item.trim()).filter(item => item !== '');
829
+ } else if (type === 'game') {
830
+ siteData = res.data && res.data.data && res.data.data.split(',').map(item => item.trim()).filter(item => item !== '');
829
831
  }
830
832
  // 如果未获取到数据,使用en做为默认数据
831
833
  if (!siteData) {