| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- window.sendTemp = ''
- window.onInterceptedData = function (data) {
- window.systemInfo = data
- if (data.url.includes('https://mms.pinduoduo.com/desert/mallCsChatStat')) {
- const dataTemp = JSON.parse(data.responseBody)
- console.log(dataTemp)
- let temp = ``
- dataTemp.result.csData.forEach(element => {
- temp += `${element.csname} mobile:${element.mobile} pc:${element.pc}\r\n`
- });
- if (temp != window.sendTemp) {
- window.sendTemp = temp
- sendMessage(window.sendTemp)
- }
- }
- };
- function sendMessage (text) {
- const myHeaders = new Headers();
- myHeaders.append("Content-Type", "application/json");
- const raw = JSON.stringify({
- "text": text,
- "touser": [
- "puge"
- ]
- });
- const requestOptions = {
- method: "POST",
- headers: myHeaders,
- body: raw,
- redirect: "follow"
- };
- fetch("https://msg.lamp.run/workWeixin?type=message&corpsecret=KcwQ0WksW0C_yodUQtYQArav5DBKWLnSCkh-5k3_nr8&agentid=1000003&corpID=ww5eabd902d66609f5", requestOptions)
- .then((response) => response.text())
- .then((result) => console.log(result))
- .catch((error) => console.error(error));
- }
- setInterval(() => {
- if(document.querySelector('.update')) document.querySelector('.update').click()
- }, 10000);
|