更新 'tbk/supercircle.user.js'

This commit is contained in:
502647092 2021-09-03 08:13:55 +00:00
parent 1100dd3ecb
commit b694f0310c

View File

@ -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,15 +167,14 @@
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)
@ -183,7 +182,6 @@
} 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)
}