fangjiasheng 1 rok pred
rodič
commit
974a36ca71
1 zmenil súbory, kde vykonal 7 pridanie a 6 odobranie
  1. 7 6
      format_convert/convert_test.py

+ 7 - 6
format_convert/convert_test.py

@@ -24,11 +24,11 @@ def test_one(p, from_remote=False):
 
     data = {"file": file_base64, "type": p.split(".")[-1], "filemd5": 100}
     if from_remote:
-        # _url = 'http://121.46.18.113:15010/convert'
+        _url = 'http://121.46.18.113:15010/convert'
         # _url = 'http://192.168.2.103:15010/convert'
         # _url = 'http://192.168.2.102:15011/convert'
         # _url = 'http://172.16.160.65:15010/convert'
-        _url = 'http://127.0.0.1:15010/convert'
+        # _url = 'http://127.0.0.1:15010/convert'
         result = json.loads(request_post(_url, data, time_out=10000))
         text_str = ""
         for t in result.get("result_html"):
@@ -62,11 +62,12 @@ if __name__ == '__main__':
         # file_path = "C:/Users/Administrator/Desktop/test_xls/merge_cell.xlsx"
         # file_path = "D:/BIDI_DOC/比地_文档/2022/Test_Interface/20210609202634853485.xlsx"
         # file_path = "D:/BIDI_DOC/比地_文档/2022/Test_ODPS/1624325845476.pdf"
-        # file_path = "C:/Users/Administrator/Downloads/1687842668787.pdf"
+        # file_path = "C:/Users/Administrator/Downloads/20210508190133924ba.pdf"
         # file_path = "C:/Users/Administrator/Desktop/test_doc/error8.doc"
-        # file_path = "C:/Users/Administrator/Desktop/test_image/error3.png"
-        file_path = "C:/Users/Administrator/Desktop/test_b_table/error15.png"
-        # file_path = "C:/Users/Administrator/Desktop/test_pdf/直接读中文error/error2.pdf"
+        # file_path = "C:/Users/Administrator/Desktop/test_image/error10.png"
+        file_path = "C:/Users/Administrator/Desktop/test_b_table/error1.png"
+        # file_path = "C:/Users/Administrator/Desktop/test_pdf/普通error/error3.pdf"
+        # file_path = "C:/save_b_table/0-0895e32470613dd7be1139eefd1342c4.png"
     else:
         file_path = "1660296734009.pdf"
     test_one(file_path, from_remote=True)