更新 'tbk/supercircle.user.js'
This commit is contained in:
parent
5d1b52edc2
commit
2810c11346
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 淘宝客自动数据上报
|
// @name 淘宝客自动数据上报
|
||||||
// @namespace https://tbk.yumc.pw/
|
// @namespace https://tbk.yumc.pw/
|
||||||
// @version 0.1
|
// @version 0.1.1
|
||||||
// @description 自动收集淘宝客数据上报服务端
|
// @description 自动收集淘宝客数据上报服务端
|
||||||
// @author MiaoWoo
|
// @author MiaoWoo
|
||||||
// @match https://pub.alimama.com/manage/effect/overview_orders.htm**
|
// @match https://pub.alimama.com/manage/effect/overview_orders.htm**
|
||||||
@ -145,7 +145,10 @@
|
|||||||
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() + " 外卖神圈 数据上报完成!"
|
let tip = document.querySelector('.data-analysis-tips')
|
||||||
|
if (tip) {
|
||||||
|
tip.innerText = new Date().toLocaleTimeString() + " 外卖神圈 数据上报完成!"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
async function randomSleep(random = 600000) {
|
async function randomSleep(random = 600000) {
|
||||||
await sleep(Math.random() * random + 60000)
|
await sleep(Math.random() * random + 60000)
|
||||||
@ -175,6 +178,7 @@
|
|||||||
}
|
}
|
||||||
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)
|
||||||
@ -182,6 +186,7 @@
|
|||||||
} 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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user