3.5 KiB
3.5 KiB
In [1]:
from requests import * In [42]:
for i in ["233157541","233157542","233157544","233157545","233157546"]:
get(f"http://139.159.182.121:8092/card/getTime?controllerSN={i}")In [13]:
data={"name":"测试","endDate":1759161600000,"content":None,"userType":1,"dateState":"0","userIds":[130,163,195,196,198,197,161,446,226,507,535,162,106,176,206,105,116,204,222,510,508,509,523,200,135,513,208,164,210,512,207,527,447,521,212,118,450,139,437,177,179,514,515,107,102,219,530,108,187,147,126,189,110,458,462,457,528,143,124,217,448,525,526,550,517,113,534,541,320,150,456,540,524,522,529,186,105,140,151,689,166,151,521,520,805,130],"status":0,"type":6,"userName":"钟伟","userId":473,"teamId":19}In [10]:
with open("demo1.docx","rb") as f:
file = f.read()In [ ]:
post(f"{ip}/word/process/convert",files={"file":(
"demo1.docx",
file, 'application/octet-stream'
)},headers=header).text'{"success":false,"msg":"文件太大","code":10004,"data":null}'[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。 [1;31m请查看单元格中的代码,以确定故障的可能原因。 [1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。 [1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。
In [11]:
post(f"{ip}/applicatonTitle/add",json=data,headers=header).textOut [11]:
'{"success":false,"msg":"Transaction was marked for rollback only; cannot commit; nested exception is org.hibernate.TransactionException: Transaction was marked for rollback only; cannot commit","code":10000,"data":null}'In [ ]: