Skip to content

Commit 44bffcb

Browse files
committed
宽度修改
1 parent 565b937 commit 44bffcb

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/botcore/src/modules/levelProgress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default <T extends BotTypes>({ bot, env, getContext, musicToFile }: Build
1010
const userMusic = await profile.getUserMusic(requiredSongList);
1111

1212
return await ctx.genCacheSendImage([level, userMusic], await ctx.getWebUrl('levelProgress', encodeURIComponent(level)),
13-
1500, `LV ${level} 完成表.png`, isPrivate ? level : undefined, isFromStart, [
13+
1600, `LV ${level} 完成表.png`, isPrivate ? level : undefined, isFromStart, [
1414
[new MessageButtonUrl('查看详情', `tg://resolve?domain=AquaDXBot&appname=webapp&startapp=${encodeURIComponent(btoa(`/levelProgress/${fromId}/${ctx.currentProfileId}/${encodeURIComponent(level)}`))}`)]
1515
]);
1616
};

packages/botcore/src/modules/plateProgress.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ export default <T extends BotTypes>({ bot, env, getContext, musicToFile }: Build
1111
const requiredSongs = (await profile.plateSongs())[ver];
1212
const userMusic = await profile.getUserMusic(requiredSongs);
1313

14+
let width = 1500;
15+
if (ver === '舞' || ver === '霸者') width = 2000;
16+
1417
return await ctx.genCacheSendImage([ver, type, userMusic], await ctx.getWebUrl('plateProgress', encodeURIComponent(ver + type)),
15-
1500, `${ver}${type}完成表.png`, isPrivate ? `${ver}${type}` : undefined, isFromStart, [
18+
width, `${ver}${type}完成表.png`, isPrivate ? `${ver}${type}` : undefined, isFromStart, [
1619
[new MessageButtonUrl('查看详情', `tg://resolve?domain=AquaDXBot&appname=webapp&startapp=${encodeURIComponent(btoa(`/plateProgress/${fromId}/${ctx.currentProfileId}/${encodeURIComponent(ver + type)}`))}`)]
1720
]);
1821
};

packages/types/src/consts.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const STD_VERSIONS = ['maimai', 'maimai PLUS', 'GreeN', 'GreeN PLUS', 'OR
2121
'ORANGE PLUS', 'PiNK', 'PiNK PLUS', 'MURASAKi', 'MURASAKi PLUS',
2222
'MiLK', 'MiLK PLUS', 'FiNALE'] as const;
2323
export const PLATE_VER = ['真', '超', '檄', '橙', '晓', '桃', '樱', '紫', '堇', '白', '雪', '辉', '舞', '熊', '华', '爽',
24-
'煌', '宙', '星', '祭', '祝', '双', '宴', '镜', '彩', '全曲'] as const;
24+
'煌', '宙', '星', '祭', '祝', '双', '宴', '镜', '彩'] as const;
2525
export const PLATE_TYPE = ['极', '将', '神', '舞舞', 'clear', 'fc', 'ap'] as const;
2626
export const BA_VE = '霸者';
2727
export const PLATE_VER_LIST = {
@@ -572,7 +572,6 @@ export const PLATE_MUSIC_LIST_CN: GameVariantPlateMusicList = {
572572
11566, 11568, 11571, 11572, 11573, 11574, 11575, 11576
573573
],
574574
'双': [],
575-
'全曲': [],
576575
'宴': [],
577576
'镜': [],
578577
'彩': [],
@@ -839,7 +838,6 @@ export const PLATE_MUSIC_LIST_145: GameVariantPlateMusicList = {
839838
11655, 11656, 11657, 11658, 11659, 11660, 11661,
840839
11662, 11663, 11664, 11668
841840
],
842-
'全曲': [],
843841
'霸者': [],
844842
'宴': [],
845843
'镜': [],
@@ -1117,7 +1115,6 @@ export const PLATE_MUSIC_LIST_150: GameVariantPlateMusicList = {
11171115
11724, 11725, 11726, 11727, 11728, 11729, 11730,
11181116
11731, 11733, 11734, 11735
11191117
],
1120-
'全曲': [],
11211118
'霸者': [],
11221119
'镜': [
11231120
10375, 10422, 10493, 10699, 11736, 11737, 11738,
@@ -1440,7 +1437,6 @@ export const PLATE_MUSIC_LIST_155: GameVariantPlateMusicList = {
14401437
11797, 11798, 11799, 11800, 11802, 11803, 11804,
14411438
11805
14421439
],
1443-
'全曲': [],
14441440
'霸者': [],
14451441
'彩': [
14461442
1736, 1819, 10030, 10122, 10187, 10303, 10367,
@@ -1763,7 +1759,6 @@ export const PLATE_MUSIC_LIST_160: GameVariantPlateMusicList = {
17631759
11869, 11870, 11871, 11872, 11873, 11874, 11875,
17641760
11876, 11877, 11878
17651761
],
1766-
'全曲': [],
17671762
'霸者': []
17681763
}
17691764
PLATE_MUSIC_LIST_160['霸者'] = PLATE_MUSIC_LIST_160['舞'];

0 commit comments

Comments
 (0)