ming 3 лет назад
Родитель
Сommit
29b63a344e
2 измененных файлов с 1 добавлено и 4 удалено
  1. 0 3
      api/main.py
  2. 1 1
      api/static/script_anchor_eng.js

+ 0 - 3
api/main.py

@@ -152,9 +152,6 @@ async def make_anchor_video_eng(req:request_eng):
     for idx in range(len(req.image_urls)):
         if 'http' not in req.image_urls[idx]:
             req.image_urls[idx] = 'http://'+req.image_urls[idx]
-    for txt in req.text_content:
-        if re.search('[a-zA-Z]', txt) !=None:
-            return {'msg':'輸入字串不能包含英文字!'}
     name_hash = str(time.time()).replace('.','')
     for imgu in req.image_urls:
         try:

+ 1 - 1
api/static/script_anchor_eng.js

@@ -113,7 +113,7 @@ $(".next").click(function () {
   console.log(dataOBJ)
   //alert('資料已送出! 請耐心等候')
   $.ajax({
-    url: 'http://www.choozmo.com:8888/make_anchor_video_v2',
+    url: 'http://www.choozmo.com:8888/make_anchor_video_eng',
     //url: 'http://www.choozmo.com:8888/qqreq',
     dataType : 'json', // 預期從server接收的資料型態
     contentType : 'application/json; charset=utf-8', // 要送到server的資料型態