4.0下半角色数

This commit is contained in:
kaguramaisakuya 2023-09-07 23:59:03 +08:00
parent 9a7fd50c65
commit b669cf64d0
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
achievement: 1037 achievement: 1037
# 角色数 # 角色数
avatar: 70 avatar: 71
# 等级 # 等级
level: 60 level: 60

View File

@ -326,7 +326,7 @@ export default class RoleIndex extends base {
} }
dayCount(num) { dayCount(num) {
let daysDifference = Math.floor((new Date() - new Date('2020-09-15')) / (1000 * 60 * 60 * 24)) let daysDifference = Math.floor((new Date() - new Date('2020-09-15')) / (1000 * 60 * 60 * 24)) + 1
let days = Math.floor(num) let days = Math.floor(num)
let msg = '活跃天数:' + days + `/${daysDifference}` let msg = '活跃天数:' + days + `/${daysDifference}`
return msg return msg
@ -469,7 +469,7 @@ export default class RoleIndex extends base {
? 'A' ? 'A'
: 'S') + `[${percentage}%]` : 'S') + `[${percentage}%]`
let daysDifference = Math.floor((new Date() - new Date('2020-09-15')) / (1000 * 60 * 60 * 24)) let daysDifference = Math.floor((new Date() - new Date('2020-09-15')) / (1000 * 60 * 60 * 24)) + 1
let line = [ let line = [
[ [