fix: update rule error
This commit is contained in:
parent
14e45fb381
commit
f4501f1a71
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 圈云盒子顶帖器
|
// @name 圈云盒子顶帖器
|
||||||
// @namespace https://circlecloud.ltd/
|
// @namespace https://circlecloud.ltd/
|
||||||
// @version 0.1.3
|
// @version 0.1.4
|
||||||
// @description 自动顶贴
|
// @description 自动顶贴
|
||||||
// @author MiaoWoo
|
// @author MiaoWoo
|
||||||
// @match https://www.mcbbs.net/forum-server-1.html**
|
// @match https://www.mcbbs.net/forum-server-1.html**
|
||||||
@ -62,8 +62,8 @@
|
|||||||
post('alive', { type: 'servers' })
|
post('alive', { type: 'servers' })
|
||||||
let lastPostServer = store.lastPostServer && JSON.parse(store.lastPostServer) || {}
|
let lastPostServer = store.lastPostServer && JSON.parse(store.lastPostServer) || {}
|
||||||
if (lastPostServer.five != servers[5].tid
|
if (lastPostServer.five != servers[5].tid
|
||||||
&& lastPostServer.ten != servers[10].tid
|
|| lastPostServer.ten != servers[10].tid
|
||||||
&& lastPostServer.twenty_five != servers[25].tid
|
|| lastPostServer.twenty_five != servers[25].tid
|
||||||
) {
|
) {
|
||||||
await post('updateServers', servers)
|
await post('updateServers', servers)
|
||||||
console.log('数据上报完成!')
|
console.log('数据上报完成!')
|
||||||
|
Loading…
Reference in New Issue
Block a user