收藏
回答

物流查询插件 报错 json错误?

错误信息{"errcode":47001,"errmsg":"data format error detail: [json错误] rid:

635112ef-0af49f6c-56cb36ba"}。

ContentType = "application/json; charset=utf-8"

参数:{"openid":"xxx","sender_phone":"xxx","receiver_phone":"xxx","delivery_id":"post","waybill_id":"xxx","goods_info":"{\"detail_list\":[{\"goods_name\":\"笔记本\",\"goods_img_url\":\"null\",\"goods_desc\":\"SFT10012\"\"}]}","trans_id":"420000155220221xxx","order_detail_path":"index"}


找不到错误原因呢?



回答关注问题邀请回答
收藏

1 个回答

  • Constlu
    Constlu
    2022-10-20

    goods_info里面字段不用 \ 来转义。

    2022-10-20
    有用
    回复 2
    • Follow my heart
      Follow my heart
      2022-10-24
      {"openid":"oAV_944HYwhvNXyp6qxxx","sender_phone":"150401xxx","receiver_phone":"1504018xxx","delivery_id":"post","waybill_id":"988906519xxx","goods_info":"{detail_list:[{goods_name:'笔记本',goods_img_url:'null',goods_desc:''}]
      }","trans_id":"420000155220xxxxxxxxx","order_detail_path":"index"}
      改了也不对呢
      2022-10-24
      回复
    • 十二.
      十二.
      2023-07-01
      麻烦你帮我查一下rid:649f02be-0588836c-03bfd7eb 这个的数据有什么问题 谢谢;一直报json错误
      2023-07-01
      回复
登录 后发表内容