Commit a17c4a84 authored by nanahira's avatar nanahira

use sapi.moecube.com and sthief.moecube.com

parent 10c2bb39
Pipeline #4592 failed with stages
in 2 minutes and 56 seconds
......@@ -278,7 +278,7 @@ export class AppDetailComponent implements OnInit, OnChanges {
data.set('currency', 'cny');
data.set('payment', this.payment);
try {
let {url} = await this.http.post('https://api.mycard.moe/orders', data).map(response => response.json()).toPromise();
let {url} = await this.http.post('https://sapi.moecube.com:444/orders', data).map(response => response.json()).toPromise();
open(url);
$('#purchase-modal').modal('hide');
$('#purchase-modal-alipay').modal('show');
......
......@@ -85,30 +85,30 @@ export class App {
static downloadUrl(app: App, platform: string, locale: string): string {
if (app.id === 'ygopro') {
return `https://thief.mycard.moe/metalinks/${app.id}-${process.platform}-${locale}/${app.version}`;
return `https://sthief.moecube.com:444/metalinks/${app.id}-${process.platform}-${locale}/${app.version}`;
} else if (app.id === 'desmume') {
return `https://thief.mycard.moe/metalinks/${app.id}-${process.platform}/${app.version}`;
return `https://sthief.moecube.com:444/metalinks/${app.id}-${process.platform}/${app.version}`;
}
return `https://thief.mycard.moe/metalinks/${app.id}/${app.version}`;
return `https://sthief.moecube.com:444/metalinks/${app.id}/${app.version}`;
}
static checksumUrl(app: App, platform: string, locale: string): string {
if (app.id === 'ygopro') {
return `https://thief.mycard.moe/checksums/${app.id}-${platform}-${locale}/${app.version}`;
return `https://sthief.moecube.com:444/checksums/${app.id}-${platform}-${locale}/${app.version}`;
} else if (app.id === 'desmume') {
return `https://thief.mycard.moe/checksums/${app.id}-${platform}/${app.version}`;
return `https://sthief.moecube.com:444/checksums/${app.id}-${platform}/${app.version}`;
}
return `https://thief.mycard.moe/checksums/${app.id}/${app.version}`;
return `https://sthief.moecube.com:444/checksums/${app.id}/${app.version}`;
}
static updateUrl(app: App, platform: string, locale: string): string {
if (app.id === 'ygopro') {
return `https://thief.mycard.moe/update/${app.id}-${platform}-${locale}/${app.version}`;
return `https://sthief.moecube.com:444/update/${app.id}-${platform}-${locale}/${app.version}`;
} else if (app.id === 'desmume') {
return `https://thief.mycard.moe/update/${app.id}-${platform}/${app.version}`;
return `https://sthief.moecube.com:444/update/${app.id}-${platform}/${app.version}`;
}
return `https://thief.mycard.moe/update/${app.id}/${app.version}`;
return `https://sthief.moecube.com:444/update/${app.id}/${app.version}`;
}
isBought(): Boolean {
......
......@@ -81,8 +81,8 @@ export class AppsService {
}
async loadApps() {
let appsURL = 'https://api.mycard.moe/apps.json';
let keysURL = 'https://api.mycard.moe/keys';
let appsURL = 'https://sapi.moecube.com:444/apps.json';
let keysURL = 'https://sapi.moecube.com:444/keys';
try {
let data = await this.http.get(appsURL)
.timeout(5000)
......
......@@ -58,7 +58,7 @@ export class LobbyComponent implements OnInit {
}
this.ref.detectChanges();
/* let url = new URL('wss://api.moecube.com:3100');
/* let url = new URL('wss://sapi.moecube.com:444:3100');
let params: URLSearchParams = url.searchParams;
params.set('user_id', this.loginService.user.email);
this.messages = new ReconnectingWebSocket(url);
......
......@@ -576,7 +576,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
console.log(error);
}
try {
this.http.get('https://api.mycard.moe/ygopro/arena/user', {search: {username: this.loginService.user.username}})
this.http.get('https://sapi.moecube.com:444/ygopro/arena/user', {search: {username: this.loginService.user.username}})
.map((response) => response.json())
.toPromise()
.then((d2) => {
......@@ -604,7 +604,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
data.myname = this.loginService.user.username;
});
await this.http.get('https://api.mycard.moe/ygopro/arena/user', {
await this.http.get('https://sapi.moecube.com:444/ygopro/arena/user', {
search: {
username: this.loginService.user.username,
}
......@@ -718,7 +718,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
'Basic ' + Buffer.from(this.loginService.user.username + ':' + this.loginService.user.external_id).toString('base64'));
match_started_at = new Date();
this.matching_arena = matching_arena = arena;
this.matching = matching = this.http.post('https://api.mycard.moe/ygopro/match', null, {
this.matching = matching = this.http.post('https://sapi.moecube.com:444/ygopro/match', null, {
headers: headers,
search: {
arena,
......
{
"name": "mycard",
"version": "3.0.47",
"version": "3.0.48",
"description": "moecube",
"keywords": [],
"author": "zh99998 <zh99998@gmail.com>",
......
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