wgt-node-utils 0.0.36 → 0.0.37
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 +1 -1
- package/src/index.js +4 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -319,9 +319,8 @@ class wgtNodeUtils {
|
|
|
319
319
|
* @components 项目名称
|
|
320
320
|
*/
|
|
321
321
|
sendFeiShu = (message, ENV, components = '') => {
|
|
322
|
-
console.log(`{\"text\":\"<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${message}\"}`)
|
|
323
322
|
// 发送消息
|
|
324
|
-
|
|
323
|
+
this.client.im.message.create({
|
|
325
324
|
params: {
|
|
326
325
|
receive_id_type: 'chat_id'
|
|
327
326
|
},
|
|
@@ -366,6 +365,9 @@ class wgtNodeUtils {
|
|
|
366
365
|
console.error(`${title} [${err.config.method}]: ${err.config.url}`);
|
|
367
366
|
console.error(`request: {params: ${JSON.stringify(err.config.params)}, data: ${JSON.stringify(err.config.data)}}`);
|
|
368
367
|
console.error(`response: ${JSON.stringify(err.response)}`);
|
|
368
|
+
|
|
369
|
+
console.error(`=========================={\"text\":\"<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${title} [${err.config.method}]: ${err.config.url}\"}`)
|
|
370
|
+
|
|
369
371
|
this.sendFeiShu(`${title} [${err.config.method}]: ${err.config.url}`, ENV, components);
|
|
370
372
|
} else {
|
|
371
373
|
console.error(`============${new Date().toLocaleString()}===========`);
|