mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-28 01:01:17 +00:00
fix: 状态卡片百分比错误
feat: 群聊Bot开关,防止Bot乱窜
This commit is contained in:
@ -132,8 +132,7 @@
|
||||
used += item.value
|
||||
}
|
||||
})
|
||||
console.log(used, total)
|
||||
return used / total * 100
|
||||
return (1 - used / total) * 100
|
||||
}
|
||||
|
||||
|
||||
@ -146,6 +145,7 @@
|
||||
top: 'center',
|
||||
textStyle: {
|
||||
//文字颜色
|
||||
|
||||
lineHeight: 36,
|
||||
color: '#fff',
|
||||
fontSize: 30
|
||||
|
Reference in New Issue
Block a user