|
@@ -20,10 +20,10 @@ 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://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"):
|
|
@@ -57,7 +57,7 @@ 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/询价单775737.xls"
|
|
|
+ file_path = "C:/Users/Administrator/Downloads/22222.pdf"
|
|
|
else:
|
|
|
file_path = "test1.doc"
|
|
|
test_one(file_path, from_remote=True)
|