mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 14:38:30 +00:00
fix
This commit is contained in:
parent
0f4c5ec6ff
commit
c00a0b805a
@ -88,8 +88,7 @@ let Cal = {
|
||||
annTime = [vTime, timeRet[0]]
|
||||
}
|
||||
}
|
||||
}
|
||||
if (/\d\.\d版本期间持续开放/.test(content)) {
|
||||
} else if (/\d\.\d版本期间持续开放/.test(content)) {
|
||||
let vRet = /(\d\.\d)版本期间持续开放/.exec(content)
|
||||
let vTime = ''
|
||||
if (vRet && vRet[1] && versionTime[vRet[1]]) {
|
||||
@ -101,6 +100,8 @@ let Cal = {
|
||||
let format = 'YYYY-MM-DD HH:mm:ss'
|
||||
let versionLastDay = moment(vTime, format).add(42, 'days').hours(6).format(format)
|
||||
annTime = [vTime, versionLastDay]
|
||||
} else if (/后永久开放/.test(content)) {
|
||||
annTime = [timeRet[1], '2099/01/01 00:00:00']
|
||||
}
|
||||
if (annTime.length === 2) {
|
||||
timeMap[annId] = {
|
||||
|
@ -141,7 +141,7 @@ let CalSr = {
|
||||
let title2 = '「虚构叙事」'
|
||||
let exchange = false
|
||||
let diff = newAbyssStart.diff(abyss0Start, 'days')
|
||||
if (diff >= 0 && diff % 28 === 0) {
|
||||
if (diff % 28 === 0) {
|
||||
exchange = true
|
||||
}
|
||||
if (exchange) {
|
||||
|
@ -210,7 +210,7 @@ export default class Player extends Base {
|
||||
if (this.isSr) {
|
||||
// 兼容处理开拓者的情况
|
||||
if (char.isTrailblazer && !create) {
|
||||
switch (id) {
|
||||
switch (id * 1) {
|
||||
case 8001:
|
||||
id = avatars['8001'] ? 8001 : 8002
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user