0
|
UuLv2见习互助发布于2024-7-23 11:28
|
你把具体的json发出来看看,有办法通过拼接再多一层
|
-
xhongli(提问者)
- {"formid":"SAL_SaleOrder","data":{"Model":{"FSaleOrgId":{"FNumber":"10Z"},"FCustId":{"FNumber":"CUST03385"},"FSalerId":{"FNumber":"YG1715_GW000772_100139"},"FSaleOrderEntry":[{"FMaterialId":{"FNumber":"4.02.04975"},"FTaxPrice":10.33,"FQty":5.0},{"FMaterialId":{"FNumber":"4.08.00468"},"FTaxPrice":58.14,"FQty":1.0}]}}}
---------------------------------------------
上面是我通过SQL拼接成的完整json字符串,其中
{"FSaleOrgId":{"FNumber":"10Z"},"FCustId":{"FNumber":"CUST03385"},"FSalerId":{"FNumber":"YG1715_GW000772_100139"},"FSaleOrderEntry":[{"FMaterialId":{"FNumber":"4.02.04975"},"FTaxPrice":10.33,"FQty":5.0},{"FMaterialId":{"FNumber":"4.08.00468"},"FTaxPrice":58.14,"FQty":1.0}]}
这部分是通过json生成算子生成的。
但是,拼接过的字符串通过API输出算子不能成功执行,错误提示“前言中不允许有内容。”见这个求助帖
https://bbs.fanruan.com/wenda/question/197379.html
同样的字符串放在postman里面能正常运行,生成金蝶单据。
|
|