Commit b3403355 authored by nanahira's avatar nanahira

replace urls

parent 02bc3111
Pipeline #8795 passed with stage
in 1 minute and 1 second
...@@ -6,7 +6,7 @@ import config from './config'; ...@@ -6,7 +6,7 @@ import config from './config';
Vue.use(VueResource) Vue.use(VueResource)
// const URL = "http://localhost:3000/api" // const URL = "http://localhost:3000/api"
const URL = "https://api.mycard.moe/ygopro/arena" const URL = "https://sapi.moecube.com:444/ygopro/arena"
export default class Api { export default class Api {
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
var source = $("#source").val() || "athletic" var source = $("#source").val() || "athletic"
var final_source = server + "-" + source var final_source = server + "-" + source
$.get('https://api.mycard.moe/ygopro/analytics/single/type', { $.get('https://sapi.moecube.com:444/ygopro/analytics/single/type', {
type: $("#type").val(), type: $("#type").val(),
lang: localStorage.getItem('lang') || 'cn', lang: localStorage.getItem('lang') || 'cn',
extra: 'name', extra: 'name',
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
sideTable = renderTable("#side", side) sideTable = renderTable("#side", side)
}); });
//卡组api https://api.mycard.moe/ygopro/analytics/deck/type?type=day&source=mycard-entertain //卡组api https://sapi.moecube.com:444/ygopro/analytics/deck/type?type=day&source=mycard-entertain
//只显示中文 //只显示中文
var lang = localStorage.getItem('lang') || 'cn'; var lang = localStorage.getItem('lang') || 'cn';
if (lang === "cn") { if (lang === "cn") {
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
deckTable.destroy(); deckTable.destroy();
} }
$.get('https://api.mycard.moe/ygopro/analytics/deck/type', { $.get('https://sapi.moecube.com:444/ygopro/analytics/deck/type', {
type: $("#type").val(), type: $("#type").val(),
source: final_source source: final_source
}, function (data) { }, function (data) {
...@@ -435,4 +435,4 @@ ...@@ -435,4 +435,4 @@
height: 72px; height: 72px;
width: 120px; width: 120px;
} }
</style> </style>
\ No newline at end of file
export default { export default {
COUNTER_URL: 'https://api.mycard.moe/ygopro/analytics/counter/type', COUNTER_URL: 'https://sapi.moecube.com:444/ygopro/analytics/counter/type',
} }
...@@ -2429,7 +2429,7 @@ ...@@ -2429,7 +2429,7 @@
} }
// var URL = "http://localhost:3000/api" // var URL = "http://localhost:3000/api"
var URL = "https://api.mycard.moe/ygopro/arena" var URL = "https://sapi.moecube.com:444/ygopro/arena"
var params = { var params = {
page: this.page page: this.page
} }
...@@ -2700,4 +2700,4 @@ ...@@ -2700,4 +2700,4 @@
</script> </script>
</html> </html>
\ No newline at end of file
...@@ -943,7 +943,7 @@ ...@@ -943,7 +943,7 @@
} }
// var URL = "http://localhost:3000/api" // var URL = "http://localhost:3000/api"
var URL = "https://api.mycard.moe/ygopro/arena" var URL = "https://sapi.moecube.com:444/ygopro/arena"
var params = { var params = {
page: this.page page: this.page
} }
...@@ -1203,4 +1203,4 @@ ...@@ -1203,4 +1203,4 @@
</script> </script>
</html> </html>
\ No newline at end of file
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