Merge branch 'master' of github.com:yoimiya-kokomi/Miao-Yunzai

This commit is contained in:
Kokomi 2023-04-17 04:34:33 +08:00
commit 0420b32027
5 changed files with 19 additions and 16 deletions

View File

@ -23,7 +23,7 @@ RUN export BUNDLE_FFMPEG=${BUNDLE_FFMPEG:-true} \
&& export USE_PYPI_MIRROR=${USE_PYPI_MIRROR:-true} \ && export USE_PYPI_MIRROR=${USE_PYPI_MIRROR:-true} \
\ \
&& ((test "$USE_APT_MIRROR"x = "true"x \ && ((test "$USE_APT_MIRROR"x = "true"x \
&& sed -i "s/deb.debian.org/mirrors.bit.edu.cn/g" /etc/apt/sources.list) || true) \ && sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" /etc/apt/sources.list) || true) \
&& apt-get update \ && apt-get update \
&& apt-get upgrade -y \ && apt-get upgrade -y \
&& apt-get install -y wget xz-utils dos2unix \ && apt-get install -y wget xz-utils dos2unix \

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
} }