更新api url
This commit is contained in:
+2
-2
@@ -24,7 +24,7 @@ window.onload = function () {
|
|||||||
paramValue = getParameterByName('id');
|
paramValue = getParameterByName('id');
|
||||||
console.log(paramValue);
|
console.log(paramValue);
|
||||||
|
|
||||||
axios.get("https://pcredive.ray650128.com/backend/api/record/" + paramValue)
|
axios.get("https://table-api.sakunadaisuki.club/api/record/" + paramValue)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
// 在這裡處理回傳的資料
|
// 在這裡處理回傳的資料
|
||||||
var options = response.data;
|
var options = response.data;
|
||||||
@@ -111,7 +111,7 @@ function fillRecord(
|
|||||||
knife3c_damage
|
knife3c_damage
|
||||||
) {
|
) {
|
||||||
// 发送登录请求
|
// 发送登录请求
|
||||||
axios.put("https://pcredive.ray650128.com/backend/api/record/" + recordId, {
|
axios.put("https://table-api.sakunadaisuki.club/api/record/" + recordId, {
|
||||||
memberId: memberId,
|
memberId: memberId,
|
||||||
record1: {
|
record1: {
|
||||||
boss: knife1_boss,
|
boss: knife1_boss,
|
||||||
|
|||||||
+2
-2
@@ -10,7 +10,7 @@ window.onload = function () {
|
|||||||
paramValue = getParameterByName('id');
|
paramValue = getParameterByName('id');
|
||||||
console.log(paramValue);
|
console.log(paramValue);
|
||||||
|
|
||||||
axios.get("https://pcredive.ray650128.com/backend/api/rank/" + paramValue)
|
axios.get("https://table-api.sakunadaisuki.club/api/rank/" + paramValue)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
// 在這裡處理回傳的資料
|
// 在這裡處理回傳的資料
|
||||||
var options = response.data;
|
var options = response.data;
|
||||||
@@ -51,7 +51,7 @@ function getParameterByName(name) {
|
|||||||
|
|
||||||
function fillRecord(recordId, rankId, rank) {
|
function fillRecord(recordId, rankId, rank) {
|
||||||
// 发送登录请求
|
// 发送登录请求
|
||||||
axios.put("https://pcredive.ray650128.com/backend/api/record/" + recordId, {
|
axios.put("https://table-api.sakunadaisuki.club/api/record/" + recordId, {
|
||||||
rankId: rankId,
|
rankId: rankId,
|
||||||
rank: rank
|
rank: rank
|
||||||
})
|
})
|
||||||
|
|||||||
+2
-2
@@ -88,7 +88,7 @@ function getDateOfRecords() {
|
|||||||
var dateSplit = dateInput.value.split("-");
|
var dateSplit = dateInput.value.split("-");
|
||||||
console.log(dateSplit);
|
console.log(dateSplit);
|
||||||
// 取得刀表
|
// 取得刀表
|
||||||
axios.get("https://pcredive.ray650128.com/backend/api/record/" + dateSplit[0] + "/" + dateSplit[1] + "/" + dateSplit[2], {
|
axios.get("https://table-api.sakunadaisuki.club/api/record/" + dateSplit[0] + "/" + dateSplit[1] + "/" + dateSplit[2], {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Accept': 'application/json'
|
'Accept': 'application/json'
|
||||||
@@ -154,7 +154,7 @@ function getDateOfRank() {
|
|||||||
var dateSplit = dateInput.value.split("-");
|
var dateSplit = dateInput.value.split("-");
|
||||||
console.log(dateSplit);
|
console.log(dateSplit);
|
||||||
// 取得排名
|
// 取得排名
|
||||||
axios.get("https://pcredive.ray650128.com/backend/api/rank/" + dateSplit[0] + "/" + dateSplit[1] + "/" + dateSplit[2], {
|
axios.get("https://table-api.sakunadaisuki.club/api/rank/" + dateSplit[0] + "/" + dateSplit[1] + "/" + dateSplit[2], {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Accept': 'application/json'
|
'Accept': 'application/json'
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ document
|
|||||||
});
|
});
|
||||||
|
|
||||||
axios
|
axios
|
||||||
.get("https://pcredive.ray650128.com/backend/api/member/not_leave")
|
.get("https://table-api.sakunadaisuki.club/api/member/not_leave")
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
// 在這裡處理回傳的資料
|
// 在這裡處理回傳的資料
|
||||||
var options = response.data;
|
var options = response.data;
|
||||||
@@ -77,7 +77,7 @@ function fillRecord(
|
|||||||
knife3c_damage
|
knife3c_damage
|
||||||
) {
|
) {
|
||||||
// 发送登录请求
|
// 发送登录请求
|
||||||
axios.post("https://pcredive.ray650128.com/backend/api/record/" + memberId, {
|
axios.post("https://table-api.sakunadaisuki.club/api/record/" + memberId, {
|
||||||
record1: {
|
record1: {
|
||||||
boss: knife1_boss,
|
boss: knife1_boss,
|
||||||
damage: parseInt(knife1_damage),
|
damage: parseInt(knife1_damage),
|
||||||
|
|||||||
+3
-3
@@ -12,7 +12,7 @@ window.onload = function () {
|
|||||||
paramValue = getParameterByName('id');
|
paramValue = getParameterByName('id');
|
||||||
console.log(paramValue);
|
console.log(paramValue);
|
||||||
|
|
||||||
axios.get("https://pcredive.ray650128.com/backend/api/member/" + paramValue)
|
axios.get("https://table-api.sakunadaisuki.club/api/member/" + paramValue)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
// 在這裡處理回傳的資料
|
// 在這裡處理回傳的資料
|
||||||
var options = response.data;
|
var options = response.data;
|
||||||
@@ -69,7 +69,7 @@ function updateMember(memberId, nickName, playerName, gameUid, discordId) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 发送登录请求
|
// 发送登录请求
|
||||||
axios.put("https://pcredive.ray650128.com/backend/api/member/" + memberId, {
|
axios.put("https://table-api.sakunadaisuki.club/api/member/" + memberId, {
|
||||||
playerName: playerName,
|
playerName: playerName,
|
||||||
nickName: nickName,
|
nickName: nickName,
|
||||||
discordID: discordId,
|
discordID: discordId,
|
||||||
@@ -87,7 +87,7 @@ function updateMember(memberId, nickName, playerName, gameUid, discordId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function deleteMember(memberId) {
|
function deleteMember(memberId) {
|
||||||
axios.delete("https://pcredive.ray650128.com/backend/api/member/" + memberId)
|
axios.delete("https://table-api.sakunadaisuki.club/api/member/" + memberId)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
window.location.href = "./index.html";
|
window.location.href = "./index.html";
|
||||||
})
|
})
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ row_1.appendChild(heading_3);
|
|||||||
row_1.appendChild(heading_5);
|
row_1.appendChild(heading_5);
|
||||||
thead.appendChild(row_1);
|
thead.appendChild(row_1);
|
||||||
// 取得刀表
|
// 取得刀表
|
||||||
axios.get("https://pcredive.ray650128.com/backend/api/member", {
|
axios.get("https://table-api.sakunadaisuki.club/api/member", {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Accept': 'application/json'
|
'Accept': 'application/json'
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ document
|
|||||||
|
|
||||||
function newMember(nickName, playerName, gameUid, discordId) {
|
function newMember(nickName, playerName, gameUid, discordId) {
|
||||||
// 发送登录请求
|
// 发送登录请求
|
||||||
axios.post("https://pcredive.ray650128.com/backend/api/member", {
|
axios.post("https://table-api.sakunadaisuki.club/api/member", {
|
||||||
playerName: playerName,
|
playerName: playerName,
|
||||||
nickName: nickName,
|
nickName: nickName,
|
||||||
discordID: discordId,
|
discordID: discordId,
|
||||||
|
|||||||
Reference in New Issue
Block a user