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