Skip to content

Commit 129b402

Browse files
committed
refactor: change game logo type to string
1 parent 8bc1278 commit 129b402

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"gameName": "新的 WebGAL 游戏",
33
"gameKey": "7fe160a6",
4+
"gameLogo": "WebGalEnter.webp",
45
"titleImage": "WebGAL_New_Enter_Image.webp",
56
"titleBgm": "s_Title.mp3",
6-
"gameLogo": ["WebGalEnter.webp"],
77
"enableExtra": true
88
}

packages/webgal/src/Core/util/coreInitialFunction/infoFetcher.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import axios from 'axios';
1111
interface IWebgalConfig {
1212
gameName?: string; // 游戏名称
1313
gameKey?: string; // 游戏Key
14-
gameLogo?: string[]; // 游戏Logo
14+
gameLogo?: string; // 游戏Logo
1515
titleImage?: string; // 标题图片
1616
titleBgm?: string; // 标题背景音乐
1717
description?: string; // 游戏描述
@@ -48,13 +48,6 @@ export const infoFetcher = async (url: string) => {
4848
value: value,
4949
}),
5050
);
51-
} else if (Array.isArray(value)) {
52-
dispatch(
53-
setGlobalVar({
54-
key: key,
55-
value: value.join('|'),
56-
}),
57-
);
5851
} else {
5952
dispatch(
6053
setGlobalVar({

0 commit comments

Comments
 (0)