mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
fix: 自检
This commit is contained in:
parent
d5d0563544
commit
1795b9196b
@ -141,7 +141,7 @@ func drawstatus(m *ctrl.Control[*zero.Ctx], uid int64, botname string) (sendimg
|
|||||||
}
|
}
|
||||||
|
|
||||||
dldata := *(**[]byte)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&bgdata))))
|
dldata := *(**[]byte)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&bgdata))))
|
||||||
if dldata == (*[]byte)(nil) || uintptr(time.Since(boottime).Hours())/24 >= atomic.LoadUintptr(&bgcount) {
|
if dldata == (*[]byte)(nil) || uintptr(time.Since(boottime).Hours()/24) >= atomic.LoadUintptr(&bgcount) {
|
||||||
url, err1 := bilibili.GetRealURL(backgroundURL)
|
url, err1 := bilibili.GetRealURL(backgroundURL)
|
||||||
if err1 != nil {
|
if err1 != nil {
|
||||||
return nil, err1
|
return nil, err1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user