更新 'mcbbs/server-bump.user.js'
This commit is contained in:
parent
f4501f1a71
commit
30276d9567
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name 圈云盒子顶帖器
|
||||
// @namespace https://circlecloud.ltd/
|
||||
// @version 0.1.4
|
||||
// @version 0.1.5
|
||||
// @description 自动顶贴
|
||||
// @author MiaoWoo
|
||||
// @match https://www.mcbbs.net/forum-server-1.html**
|
||||
@ -61,7 +61,8 @@
|
||||
let servers = await readServers()
|
||||
post('alive', { type: 'servers' })
|
||||
let lastPostServer = store.lastPostServer && JSON.parse(store.lastPostServer) || {}
|
||||
if (lastPostServer.five != servers[5].tid
|
||||
if (lastPostServer.first != servers[0].tid
|
||||
|| lastPostServer.five != servers[5].tid
|
||||
|| lastPostServer.ten != servers[10].tid
|
||||
|| lastPostServer.twenty_five != servers[25].tid
|
||||
) {
|
||||
@ -69,6 +70,7 @@
|
||||
console.log('数据上报完成!')
|
||||
}
|
||||
store.lastPostServer = JSON.stringify({
|
||||
first: servers[0].tid,
|
||||
five: servers[5].tid,
|
||||
ten: servers[10].tid,
|
||||
twenty_five: servers[25].tid
|
||||
|
Loading…
Reference in New Issue
Block a user