!21 fix:云崽抽卡记录迪希雅错误显示

Merge pull request !21 from Rrrrrrray/master
This commit is contained in:
Yoimiya 2023-04-16 20:32:57 +00:00 committed by Gitee
commit 9e01981804
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 18 additions and 15 deletions

View File

@ -18,7 +18,7 @@ export default class base {
* @param pluResPath 插件资源路径 * @param pluResPath 插件资源路径
*/ */
get screenData () { get screenData () {
let headImg = '迪希雅' let headImg = '白术'
return { return {
saveId: this.userId, saveId: this.userId,

View File

@ -588,21 +588,24 @@ export default class GachaLog extends base {
return false return false
} }
if (this.role.name == '刻晴') { let role5join = {
let start = new Date('2021-02-17 18:00:00').getTime() '刻晴': {
let end = new Date('2021-03-02 15:59:59').getTime() start: '2021-02-17 18:00:00',
let logTime = new Date(this.role.time).getTime() end: '2021-03-02 15:59:59'
},
if (logTime < start || logTime > end) { '提纳里': {
return false start: '2022-08-24 06:00:00',
} else { end: '2022-09-09 17:59:59'
return true },
'迪希雅': {
start: '2023-03-01 06:00:00',
end: '2023-03-21 17:59:59'
} }
} }
if (this.role.name == '提纳里') { if (lodash.keys(role5join).includes(this.role.name)) {
let start = new Date('2022-08-24 06:00:00').getTime() let start = new Date(role5join[this.role.name].start).getTime()
let end = new Date('2022-09-09 17:59:59').getTime() let end = new Date(role5join[this.role.name].end).getTime()
let logTime = new Date(this.role.time).getTime() let logTime = new Date(this.role.time).getTime()
if (logTime < start || logTime > end) { if (logTime < start || logTime > end) {

View File

@ -22,7 +22,7 @@ export default class LogCount extends base {
] ]
/** 五星角色 */ /** 五星角色 */
this.role5 = ['刻晴', '莫娜', '七七', '迪卢克', '琴', '提纳里'] this.role5 = ['刻晴', '莫娜', '七七', '迪卢克', '琴', '提纳里', '迪希雅']
/** 五星武器 */ /** 五星武器 */
this.weapon5 = ['阿莫斯之弓', '天空之翼', '天空之卷', '天空之脊', '天空之傲', '天空之刃', '四风原典', '和璞鸢', '狼的末路', '风鹰剑'] this.weapon5 = ['阿莫斯之弓', '天空之翼', '天空之卷', '天空之脊', '天空之傲', '天空之刃', '四风原典', '和璞鸢', '狼的末路', '风鹰剑']
} }

View File

@ -128,7 +128,7 @@ export default class RoleDetail extends base {
if (lodash.random(0, 100) > 50) { if (lodash.random(0, 100) > 50) {
bg = 3 bg = 3
} }
} else if (['芭芭拉', '凝光', '刻晴', '琴'].includes(avatars.name)) { } else if (['芭芭拉', '凝光', '刻晴', '琴', '菲谢尔', '迪卢克', '丽莎', '神里绫华'].includes(avatars.name)) {
if (avatars.costumes && avatars.costumes.length >= 1) { if (avatars.costumes && avatars.costumes.length >= 1) {
bg = 3 bg = 3
} }