更新api url

This commit is contained in:
2026-08-03 23:34:15 +08:00
parent cef720fa99
commit 8d3ffde7a4
7 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ window.onload = function () {
paramValue = getParameterByName('id');
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) {
// 在這裡處理回傳的資料
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,
nickName: nickName,
discordID: discordId,
@@ -87,7 +87,7 @@ function updateMember(memberId, nickName, playerName, gameUid, discordId) {
}
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) {
window.location.href = "./index.html";
})
+1 -1
View File
@@ -33,7 +33,7 @@ row_1.appendChild(heading_3);
row_1.appendChild(heading_5);
thead.appendChild(row_1);
// 取得刀表
axios.get("https://pcredive.ray650128.com/backend/api/member", {
axios.get("https://table-api.sakunadaisuki.club/api/member", {
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
+1 -1
View File
@@ -14,7 +14,7 @@ document
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,
nickName: nickName,
discordID: discordId,