Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
mycard
Commits
a17c4a84
Commit
a17c4a84
authored
Aug 02, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use sapi.moecube.com and sthief.moecube.com
parent
10c2bb39
Pipeline
#4592
failed with stages
in 2 minutes and 56 seconds
Changes
6
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
17 deletions
+17
-17
app/app-detail.component.ts
app/app-detail.component.ts
+1
-1
app/app.ts
app/app.ts
+9
-9
app/apps.service.ts
app/apps.service.ts
+2
-2
app/lobby.component.ts
app/lobby.component.ts
+1
-1
app/ygopro.component.ts
app/ygopro.component.ts
+3
-3
package.json
package.json
+1
-1
No files found.
app/app-detail.component.ts
View file @
a17c4a84
...
...
@@ -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
'
);
...
...
app/app.ts
View file @
a17c4a84
...
...
@@ -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
{
...
...
app/apps.service.ts
View file @
a17c4a84
...
...
@@ -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
)
...
...
app/lobby.component.ts
View file @
a17c4a84
...
...
@@ -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);
...
...
app/ygopro.component.ts
View file @
a17c4a84
...
...
@@ -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
,
...
...
package.json
View file @
a17c4a84
{
"name"
:
"mycard"
,
"version"
:
"3.0.4
7
"
,
"version"
:
"3.0.4
8
"
,
"description"
:
"moecube"
,
"keywords"
:
[],
"author"
:
"zh99998 <zh99998@gmail.com>"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment