Skip to content

Commit 20bf9d6

Browse files
committed
fix: image 404
1 parent 5e2c4e6 commit 20bf9d6

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

packages/clients/src/UserSource.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,12 @@ export abstract class UserSource {
7272
}
7373

7474
public abstract getNameplate(userId: number | string): Promise<Nameplate>;
75+
76+
public async getChuniUserMusic(userId: number | string, musicIdList: number[]) {
77+
throw new Error('不支持的账号类型');
78+
}
79+
80+
public async getChuniUserRating(userId: number | string, musicIdList: number[]) {
81+
throw new Error('不支持的账号类型');
82+
}
7583
}

packages/data/src/jacket-exist-ids.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,5 +1596,6 @@
15961596
9213,
15971597
9214,
15981598
9215,
1599-
9216
1599+
9216,
1600+
1791
16001601
]

packages/types/src/Song.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,11 @@ export default class Song implements DataSong {
7070
public get coverUrl() {
7171
if (JACKET_EXIST_IDS.includes(this.id))
7272
return getAssetUrl(ASSET_TYPE.JacketPng, this.id);
73-
if (this.imageName)
74-
return 'https://shama.dxrating.net/images/cover/v2/' + this.imageName;
7573
}
7674

7775
public get coverAvif() {
7876
if (JACKET_EXIST_IDS.includes(this.id))
7977
return getAssetUrl(ASSET_TYPE.Jacket, this.id);
80-
if (this.imageName)
81-
return 'https://shama.dxrating.net/images/cover/v2/' + this.imageName;
8278
}
8379

8480
public get basicInfo() {

0 commit comments

Comments
 (0)