Browse Source

更新 'tbk/supercircle.user.js'

master
502647092 3 months ago
parent
commit
b694f0310c
  1. 32
      tbk/supercircle.user.js

32
tbk/supercircle.user.js

@ -112,7 +112,7 @@
"credentials": "include"
}).then(r => r.json()))
post('message', { message: '' })
console.log(new Date().toLocaleTimeString(),'阿里妈妈数据上报完成!')
console.log(new Date().toLocaleTimeString(), '阿里妈妈数据上报完成!')
}
async function taobaoLogin() {
await sleep(1000)
@ -140,11 +140,11 @@
}).then(r => r.json())
post('meituan', orders)
post('mtMtz', {})
console.log(new Date().toLocaleTimeString(),'美团数据上报完成!')
console.log(new Date().toLocaleTimeString(), '美团数据上报完成!')
await post('htt', { type: 2, scene: 2 })
await post('htt', { type: 2 })
post('htt', { type: 3 })
console.log(new Date().toLocaleTimeString(),'花推推数据上报完成!')
console.log(new Date().toLocaleTimeString(), '花推推数据上报完成!')
document.querySelector('.data-analysis-tips').innerText = new Date().toLocaleTimeString() + " 外卖神圈 数据上报完成!"
}
async function randomSleep(random = 600000) {
@ -156,9 +156,9 @@
function getLastPostMessageTime() {
return Date.now() - (window.localStorage.lastPostMessageTime || 0)
}
function postMessage(message){
function postMessage(message) {
if (getLastPostMessageTime() > 10800000) {
post('message', { message: message})
post('message', { message: message })
setLastPostMessageTime()
}
}
@ -167,23 +167,21 @@
await taobaoLogin()
return
}
if(location.href.startsWith('https://www.alimama.com/member/login.htm')){
setTimeout(()=> {
if (location.href.startsWith('https://www.alimama.com/member/login.htm')) {
setTimeout(() => {
postMessage('阿里妈妈页面出现滑动验证码!')
alimamaRefresh(new Date().format('yyyy-MM-dd'))
}, 30000)
}
if (location.href.startsWith('https://pub.alimama.com/manage/effect/overview_orders.htm')) {
await sleep(2000)
// for (let i = 0; i < 10; i++) {
try {
await sleep(500)
await reportOrders(today)
await randomSleep()
} catch (ex) {
post('message', { message: '阿里妈妈数据上报异常: ' + ex })
}
// }
try {
await sleep(500)
await reportOrders(today)
await randomSleep()
} catch (ex) {
post('message', { message: '阿里妈妈数据上报异常: ' + ex })
}
alimamaRefresh(new Date().format('yyyy-MM-dd'))
return
}
@ -202,7 +200,7 @@
return
}
if (location.href.startsWith('https://pub.alimama.com//openapi/param2/1/gateway.unionpub/report.getTbkOrderDetails.json/_____tmd_____/punish')) {
setTimeout(()=> {
setTimeout(() => {
postMessage('阿里妈妈页面出现滑动验证码!')
}, 10000)
}

Loading…
Cancel
Save