wgt-node-utils 0.0.34 → 0.0.36

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/src/index.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -319,15 +319,17 @@ 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}\"}`)
322
323
  // 发送消息
323
- this.client.im.message.create({
324
+ this.client.im.message.create({
324
325
  params: {
325
326
  receive_id_type: 'chat_id'
326
327
  },
327
328
  data: {
328
329
  receive_id: 'oc_aba13955509035daa7a799f30b1b3341',
329
330
  msg_type: 'text',
330
- content: `{"text":"<b>前端容器node报错</b>\\ncomponents: ${components}\\nenv: ${ENV}\\message: ${message}"}`,
331
+
332
+ content: `{\"text\":\"<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${message}\"}`,
331
333
  uuid: ''
332
334
  }
333
335
  }).then(res => {