aaron-1015 hace 3 años
padre
commit
7343f84a17
Se han modificado 3 ficheros con 4 adiciones y 4 borrados
  1. 1 1
      api/main.py
  2. 2 2
      api/static/script_util.js
  3. 1 1
      api/templates/script_index.js

+ 1 - 1
api/main.py

@@ -434,7 +434,7 @@ def gen_video_queue(name_hash,name,text_content, image_urls,avatar,user_id):
             if left_time is None:
                 left_time = 5*60
             if left_time < vid_duration:
-                msg = '您本月額度剩下'+str(left_time)+'秒,此部影片有'+str(vid_duration)+'秒, 若要繼續產生影片請至 http://192.168.1.106:8007/confirm_add_value?name_hash='+name_hash+' 加值'
+                msg = '您本月額度剩下'+str(left_time)+'秒,此部影片有'+str(vid_duration)+'秒, 若要繼續產生影片請至 http://192.168.1.106:8888/confirm_add_value?name_hash='+name_hash+' 加值'
                 print(msg)
                 msg =msg.encode(encoding='utf-8')
                 mailer.send(msg, email)

+ 2 - 2
api/static/script_util.js

@@ -105,7 +105,7 @@ $(".next").click(function () {
   console.log(dataOBJ)
   jwt_token =  get_jwt_token()
   var xhr = new XMLHttpRequest();
-  xhr.open("POST", "http://192.168.1.106:8007/make_anchor_video");
+  xhr.open("POST", "http://192.168.1.106:8888/make_anchor_video");
   xhr.setRequestHeader("accept", "application/json");
   xhr.setRequestHeader("Authorization","Bearer "+jwt_token)
   xhr.setRequestHeader("Content-Type", "application/json");
@@ -149,7 +149,7 @@ var loaded_data = ''
 function openNav() {
   document.getElementById("mySidenav").style.width = "250px";
   document.querySelector('.loader').style.display = "block";
-  $.get("http://192.168.1.106:8007/history_input", function (data, status) {
+  $.get("http://192.168.1.106:8888/history_input", function (data, status) {
     console.log(data)
     loaded_data = data
     for (var obj of data) {

+ 1 - 1
api/templates/script_index.js

@@ -1,6 +1,6 @@
 
 $("#btn_login").click(function () {
-  var url = "http://192.168.1.106:8007/login";
+  var url = "http://192.168.1.106:8888/login";
   var xhr = new XMLHttpRequest();
   xhr.open("POST", url);
   xhr.setRequestHeader("accept", "application/json");