wgt-node-utils 0.0.20 → 0.0.21

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": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -15,8 +15,6 @@ class wgtNodeUtils {
15
15
  this.gameResourcesMap = {};
16
16
  // 是否發送错误信息开关
17
17
  this.filesErrorSendStatus = false;
18
-
19
-
20
18
  // 初始化Lark客户端
21
19
  if (appId && appSecret) {
22
20
  this.initClient(appId, appSecret);
@@ -260,7 +258,6 @@ class wgtNodeUtils {
260
258
  console.log(directoryPath, 'directoryPath')
261
259
  // 读取目录下的所有文件
262
260
  const files = fs.readdirSync(directoryPath);
263
- console.log(files, 'files')
264
261
  files.forEach(file => {
265
262
  // 构建文件的完整路径
266
263
  const filePath = path.join(directoryPath, file);
@@ -448,7 +445,7 @@ class wgtNodeUtils {
448
445
  });
449
446
  resolve(list || defaultLanList);
450
447
  }).catch(() => {
451
- this.appendLog('语言读取', '语言接口调用失败');
448
+ this.appendLog('语言读取', '语言接口调用失败', 'test', components = '');
452
449
  // 调用失败时,返回en
453
450
  resolve(defaultLanList);
454
451
  });
@@ -561,7 +558,7 @@ class wgtNodeUtils {
561
558
  if (file && file.length > 0) {
562
559
  return true;
563
560
  }
564
- this.appendLog(`${pageName}[${item}]`, '文件加载失败');
561
+ this.appendLog(`${pageName}[${item}]`, '文件加载失败', 'test', components = '');
565
562
  return false;
566
563
  });
567
564
  this.filesErrorSendStatus = !fileStatus;