ming 3 years ago
parent
commit
246dfa734a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      api/static/script_anchor_eng.js

+ 4 - 4
api/static/script_anchor_eng.js

@@ -60,7 +60,7 @@ function prepareUpload(event) {
     processData: false, // important
     processData: false, // important
     contentType: false, // important
     contentType: false, // important
     data: data,
     data: data,
-    url: '192.168.1.106:8887/uploadfile',
+    url: '/uploadfile',
     dataType: 'json',
     dataType: 'json',
     success: function (jsonData) {
     success: function (jsonData) {
       event.target.previousSibling.value =jsonData.msg;
       event.target.previousSibling.value =jsonData.msg;
@@ -113,7 +113,7 @@ $(".next").click(function () {
   console.log(dataOBJ)
   console.log(dataOBJ)
   //alert('資料已送出! 請耐心等候')
   //alert('資料已送出! 請耐心等候')
   $.ajax({
   $.ajax({
-    url: '192.168.1.106:8887/make_anchor_video_eng',
+    url: '/make_anchor_video_eng',
     //url: 'http://www.choozmo.com:8888/qqreq',
     //url: 'http://www.choozmo.com:8888/qqreq',
     dataType : 'json', // 預期從server接收的資料型態
     dataType : 'json', // 預期從server接收的資料型態
     contentType : 'application/json; charset=utf-8', // 要送到server的資料型態
     contentType : 'application/json; charset=utf-8', // 要送到server的資料型態
@@ -142,7 +142,7 @@ $(".gen_avatar").click(function () {
   console.log(dataOBJ)
   console.log(dataOBJ)
   //alert('資料已送出! 請耐心等候')
   //alert('資料已送出! 請耐心等候')
   $.ajax({
   $.ajax({
-    url: '192.168.1.106:8887/swapFace',
+    url: '/swapFace',
     dataType: 'json', // 預期從server接收的資料型態
     dataType: 'json', // 預期從server接收的資料型態
     contentType: 'application/json; charset=utf-8', // 要送到server的資料型態
     contentType: 'application/json; charset=utf-8', // 要送到server的資料型態
     type: 'post',
     type: 'post',
@@ -162,7 +162,7 @@ var loaded_data = ''
 function openNav() {
 function openNav() {
   document.getElementById("mySidenav").style.width = "250px";
   document.getElementById("mySidenav").style.width = "250px";
   document.querySelector('.loader').style.display = "block";
   document.querySelector('.loader').style.display = "block";
-  $.get("192.168.1.106:8887/history_input", function (data, status) {
+  $.get("/history_input", function (data, status) {
     console.log(data)
     console.log(data)
     loaded_data = data
     loaded_data = data
     for (var obj of data) {
     for (var obj of data) {