| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | 局_网址 | 文本型 | | | | 局_方式 | 整数型 | | | | 局_提交数据 | 文本型 | | | | 局_提交协议头 | 文本型 | | | | 局_结果 | 字节集 | | | | 局_返回 | 文本型 | | | | 存储文件号 | 整数型 | | | | 存储文本内容 | 文本型 | | |
存储文件号 = 打开文件 (“C:\Users\admin\Desktop\新建文本文档.txt”, , )存储文本内容 = 读入文本 (存储文件号, )调试输出 (存储文本内容 )关闭文件 (存储文件号 )局_网址 = “http://127.0.0.1:7071/app/print”局_方式 = 1 局_提交数据 = 存储文本内容 局_提交协议头 = “application/json”局_结果 = 网页_访问_对象 (局_网址, 局_方式, 局_提交数据, , , 局_提交协议头, , , , , , , , , , , )局_返回 = 到文本 (编码_编码转换对象 (局_结果 )) 调试输出 (局_返回 )
原json内容
{"printer":"PDFwriter","template":{"panels":[{"index":2,"name":3,"paperType":"自定义","height":130,"width":76,"paperList":{"type":"自定义","width":76,"height":130},"paperHeader":0,....
我传过去之后变成了这样,多了这些红色区域
{"{\"printer\":\"PDFwriter\",\"template\":{\"panels\":[{\"index\":2,\"name\":3,\"paperType\":\"自定义\",\"height\":130,\"width\":76,\"paperList\":{\"type\":\"自定义\",\"width\":76,\"height\":130},\"paperHeader\":0,\"paperFooter\":841":{"8897637795277,\"paperNumberContinue\":true,\"panelAngle\":0,.....
正常应该是这样
{"printer":"PDFwriter","template":{"panels":[{"index":0,"name":1,"paperType":"自定义","height":76,"width":130,"paperList":{"type":"自定义","width":76,"height":130},"paperHeader":0......
|