Commit 54d88295 authored by 神楽坂玲奈's avatar 神楽坂玲奈

宣传片

parent 7a8a61ec
...@@ -33,6 +33,9 @@ export class Cube { ...@@ -33,6 +33,9 @@ export class Cube {
price: { [currency: string]: string }; price: { [currency: string]: string };
key?: string; key?: string;
// 宣传片
trailer: { url: string, type: 'video' | 'image' }[];
static downloadUrl(app: Cube, platform: string, locale: string): string { static downloadUrl(app: Cube, platform: string, locale: string): string {
if (app.id === 'ygopro') { if (app.id === 'ygopro') {
return `https://api.moecube.com/metalinks/${app.id}-${process.platform}-${locale}/${app.version}`; return `https://api.moecube.com/metalinks/${app.id}-${process.platform}-${locale}/${app.version}`;
...@@ -173,6 +176,14 @@ export class Cube { ...@@ -173,6 +176,14 @@ export class Cube {
this.price = app.price; this.price = app.price;
this.key = app.key; this.key = app.key;
this.trailer = [
{ url: 'http://cdn.edgecast.steamstatic.com/steam/apps/2036126/movie480.webm', type: 'video' },
{
url: 'http://cdn.edgecast.steamstatic.com/steam/apps/264710/ss_e41e71c05f3fcf08e54140bd9f1ffc9008706843.600x338.jpg',
type: 'image'
}
];
} }
findDependencies(): Cube[] { findDependencies(): Cube[] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment