diff --git a/index.js b/index.js index 4b212b91211e3f2ef4c56db515e30161d8aaa801..52bfd09e1fcce7b0562d16d30be3be4520c0e70a 100644 --- a/index.js +++ b/index.js @@ -18,21 +18,32 @@ const querystring = require('querystring'); "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36", }; - let formData = { - 'auth': 'Lz8rzL8zzt', - 'jsons': `[{"d_name":"five123","user_agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36","msg_type":"1","openid":"","nickname":"哈哈1","headimgurl":"","d_else":"新婚快乐 百年好合"}]` - + // let formData = { + // 'auth': 'Lz8rzL8zzt', + // 'jsons': `[{"d_name":"five123","user_agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36","msg_type":"1","openid":"","nickname":"哈哈1","headimgurl":"","d_else":"新婚快乐 百年好合"}]` + + // } + + let formData = { + smsname: "谭皓月", + peoplenum: "4", + smstele: "14708206612", + auth: "Lz8rzL8zzt", + openid: null, + nickname: null, + headimgurl: null, } + + // 目标服务器地址和端口 const options = { - // - hostname: 'https://h5.hunlihu.com', - path: '/vashow/ly/door/door/sign2', - method: 'POST', + headers: headersData }; -let url= "https://h5.hunlihu.com/vashow/ly/door/door/sign2"; +// let url= "https://h5.hunlihu.com/vashow/ly/door/door/sign2"; +let url= "https://h5.hunlihu.com/vashow/ly/door/door/sign"; + // 将对象格式的数据转换为 x-www-form-urlencoded 格式 const encodedData = querystring.stringify(formData);