|
@@ -3,8 +3,13 @@ const axios = require('axios');
|
|
|
|
|
|
const url = 'https://open.feishu.cn/open-apis/bot/v2/hook/18dfe21f-b1bd-46ca-a8c7-c85e1c84f02d'
|
|
const url = 'https://open.feishu.cn/open-apis/bot/v2/hook/18dfe21f-b1bd-46ca-a8c7-c85e1c84f02d'
|
|
|
|
|
|
-const sendMessage = async (params) => {
|
|
|
|
- console.log('sendMessage',params)
|
|
|
|
|
|
+const sendMessage = async (...params) => {
|
|
|
|
+ var log = '';
|
|
|
|
+ for (let index = 0; index < params.length; index++) {
|
|
|
|
+ log = log.concat(params[index])
|
|
|
|
+ }
|
|
|
|
+ params = log;
|
|
|
|
+ console.log('sendMessage', log)
|
|
var data = {
|
|
var data = {
|
|
msg_type: "text",
|
|
msg_type: "text",
|
|
content: { text: params }
|
|
content: { text: params }
|