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