1
0
Fork 0

更新 'tbk/supercircle.user.js'

master
502647092 2023-05-24 01:41:56 +00:00
parent 5d1b52edc2
commit 2810c11346
1 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name 淘宝客自动数据上报
// @namespace https://tbk.yumc.pw/
// @version 0.1
// @version 0.1.1
// @description 自动收集淘宝客数据上报服务端
// @author MiaoWoo
// @match https://pub.alimama.com/manage/effect/overview_orders.htm**
@ -145,7 +145,10 @@
await post('htt', { type: 2 })
post('htt', { type: 3 })
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) {
await sleep(Math.random() * random + 60000)
@ -175,6 +178,7 @@
}
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)
@ -182,6 +186,7 @@
} catch (ex) {
post('message', { message: '阿里妈妈数据上报异常: ' + ex })
}
// }
alimamaRefresh(new Date().format('yyyy-MM-dd'))
return
}