Browse Source

修改API Base URL

mike 3 years ago
parent
commit
e005407da4
2 changed files with 6 additions and 8 deletions
  1. 1 1
      ArkCard-web/event.html
  2. 5 7
      ArkCard-web/goto.js

+ 1 - 1
ArkCard-web/event.html

@@ -148,7 +148,7 @@ $(".nft-event").submit(function (e) {
 
   $.ajax({
       type: 'POST',
-      url: 'https://ark.cards:8228/event',
+      url: 'https://api.ptt.cx:8750/api/v1/line/event',
       data: jsonString,
       dataType: 'json',
       async: false,

+ 5 - 7
ArkCard-web/goto.js

@@ -27,7 +27,7 @@ function collection(collectuserid='') {
 
   $.ajax({
     method: "GET",
-    url: "https://ark.cards:8228/collection/" + collectuserid + "",
+    url: "https://api.ptt.cx:8750/api/v1/line/collection/" + collectuserid + "",
     dataType: "json",
   })
   .done(function (msg) {
@@ -95,8 +95,7 @@ function shop(collectuserid='') {
 
   $.ajax({
     method: "GET",
-    url: "https://ark.cards:8228/shop/" + collectuserid + "",
-    // url: "https://ark.cards:8228/shop/Uf161c92b16f84357987a78c2b4b47719",
+    url: "https://api.ptt.cx:8750/api/v1/line/shop/" + collectuserid + "",
     dataType: "json",
   })
   .done(function (msg) {
@@ -176,8 +175,7 @@ function get_data(collectuserid='') {
 
   $.ajax({
     method: "GET",
-    url: "https://ark.cards:8228/receive/" + collectuserid + "",
-    // url:"https://api.ptt.cx:8228/receive/Uf161c92b16f84357987a78c2b4b47719",
+    url: "https://api.ptt.cx:8750/api/v1/line/receive/" + collectuserid + "",
     dataType: "json",
   })
   .done(function (msg) {
@@ -254,7 +252,7 @@ $(".collect-send").submit(function (e) {
 
   $.ajax({
     type: 'POST',
-    url: 'https://ark.cards:8228/send',
+    url: 'https://api.ptt.cx:8750/api/v1/line/send',
     data: jsonString,
     dataType: 'json',
     async: false,
@@ -287,7 +285,7 @@ $(".nft-buy").submit(function (e) {
 
     $.ajax({
       type: 'POST',
-      url: 'https://ark.cards:8228/buy',
+      url: 'https://api.ptt.cx:8750/api/v1/line/buy',
       data: jsonString,
       dataType: 'json',
       success: function (data) {