Commit a93fb0a8 authored by 2breakegg's avatar 2breakegg

Merge branch 'dev' of https://github.com/moecube/moecube into dev

parents 1e2e0ed1 a297980c
......@@ -33,6 +33,9 @@ export class Cube {
price: { [currency: string]: string };
key?: string;
// 宣传片
trailer: { url: string, type: 'video' | 'image' }[];
static downloadUrl(app: Cube, platform: string, locale: string): string {
if (app.id === 'ygopro') {
return `https://api.moecube.com/metalinks/${app.id}-${process.platform}-${locale}/${app.version}`;
......@@ -173,6 +176,14 @@ export class Cube {
this.price = app.price;
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[] {
......
{
"compilerOptions": {
"target": "es2017",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
......
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