收藏
回答

好物圈导入订单提示path非法怎么处理?

请求接口:

https://api.weixin.qq.com/mall/importorder?action=add-order&is_history=1/1&access_token=xxx


请求数据:

{
    "order_list":[
        {
            "order_id":"B12787472",
            "create_time":1566456263,
            "pay_finish_time":1566456268,
            "fee":9190,
            "status":3,
            "ext_info":{
                "product_info":{
                    "item_list":[
                        {
                            "item_code":"1",
                            "sku_id":"44",
                            "amount":1,
                            "total_fee":9190,
                            "thumb_url":"",
                            "title":"16开软面杂志书-哑粉纸",
                            "unit_price":9190,
                            "original_price":9190,
                            "category_list":[
                                "美篇书"
                            ]
,
                            "item_detail_page":{
                                "path":"/pages/skuDetail/index?spu_id=1&sku_id=44"
                            }
,
                            "poi_list":null
                        }

                    ]

                }
,
                "express_info":{
                    "price":0,
                    "name":"就快乐了",
                    "phone":"13687664678",
                    "address":"好快乐啦吧看看",
                    "province":"北京",
                    "city":"北京市",
                    "district":"朝阳区"
                }
,
                "brand_info":{
                    "contact_detail_page":{
                        "path":"",
                        "kf_type":0
                    }

                }
,
                "payment_method":0,
                "user_open_id":"xxx",
                "order_detail_page":{
                    "path":"/pages/orderDetail/index?order_id=B12787472"
                }

            }

        }

    ]

}


返回结果

{
    "fail_order_list":[
        {
            "order_id":"B12787448",
            "error_code":-2,
            "msg":"非法的小程序跳转路径或者h5路径(小程序填写path, h5填写src_h5_path,两者二选1)"
        }

    ]
,
    "follow_buy_check_list":[

    ]
,
    "errcode":9009098,
    "errmsg":"请求参数错误"
}

最后一次编辑于  11-07
回答关注问题邀请回答
收藏

1 个回答

  • 袁康
    袁康
    11-07

    这里https://developers.weixin.qq.com/community/develop/doc/00046af9fa88e89e8aa88f09351c00

    11-07
    赞同
    回复 5
    • 书生柳
      书生柳
      11-07
      order_detail_page我传了的,不行。
      11-07
      回复
    • 袁康
      袁康
      11-07回复书生柳
      报这个错,路径写的不对吧
      11-07
      回复
    • 袁康
      袁康
      11-07
      pages/orderDetail/index?order_id=B12787472 写
      11-07
      回复
    • 书生柳
      书生柳
      11-07回复袁康
      没用,试过的
      11-07
      回复
    • 袁康
      袁康
      11-08回复书生柳
      邀请别人给你看看
      11-08
      回复
问题标签