收藏
回答

订单已经生成,调用生成支付参数异常,product_infos字段异常,请检查json及字段合法性?

{
    "errcode": 0,
    "order": {
        "order_id": 3304034435152609536,
        "out_order_id": "DD165538022503527859113",
        "openid": "o5mPu4qb9exFoDkFDmlJKt1HNauM",
        "create_time": "2022-06-16 19:50:25",
        "order_detail": {
            "product_infos": [
                {
                    "product_id": 479611386,
                    "out_product_id": "SPU000000001",
                    "sku_id": 776890228,
                    "out_sku_id": "SKU000000001",
                    "product_cnt": 2,
                    "sale_price": 1,
                    "title": "5双装儿童袜子棉春夏薄款透气网眼婴儿袜子男童女童短袜",
                    "head_img": "https://mmecimage.cn/p/wx0942e02f55fcff1f/HI4IUdo-Bu2yJ1OZ1OFgpESP83QT_WfZaeWfy6IbPA",
                    "path": "pages/productDetail/productDetail?productId=479611386",
                    "sku_attrs": [
                        {
                            "attr_key": "规格",
                            "attr_value": "【3双】"
                        }
                    ],
                    "sku_real_price": 2,
                    "can_after_sale": false,
                    "item_type": 0
                }
            ],
            "pay_info": {
                "prepay_id": "wx161950262311414b1cb63260125a200000",
                "prepay_time": "2022-06-16 19:50:26",
                "pay_method_type": 0,
                "out_trade_no": "120330403443515260953600000"
            },
            "price_info": {
                "freight": 0,
                "discounted_price": 0,
                "additional_price": 0,
                "additional_remarks": "",
                "order_price": 2
            },
            "pay_info_list": [],
            "promotion_info": {}
        },
        "delivery_detail": {
            "delivery_type": 1,
            "delivery_list": []
        },
        "status": 10,
        "path": "/pages/order.html?out_order_id=xxxxx",
        "update_time": "2022-06-16 19:50:26",
        "address_info": {
            "receiver_name": "张三",
            "detailed_address": "详细收货地址信息",
            "tel_number": "收货人手机号码",
            "country": "国家,选填",
            "province": "省份,选填",
            "city": "城市,选填",
            "town": "区县,选填"
        },
        "fund_type": 1,
        "expire_time": 1655466625,
        "aftersale_duration": 7,
        "trace_id": "1_lX_LhrzSB_UkyAbxo0MltJaiQZ0enrjSL393YByrii8",
        "default_receiving_address": {
            "receiver_name": "我爱我家",
            "detailed_address": "龙洞250号",
            "tel_number": "18712345678",
            "country": "中国",
            "province": "广东省",
            "city": "广州市",
            "town": "温柔乡"
        }
    }
}
这是订单信息,提示product_infos有问题?麻烦帮忙看一下product_infos字段异常,请检查json及字段合法性 rid: 62ab1bb9-3e985e43-016fbe22
回答关注问题邀请回答
收藏

1 个回答

  • Demons
    Demons
    2022-06-17

    提供openid,out_order_id


    2022-06-17
    有用
    回复 1
    • 葫芦娃
      葫芦娃
      2022-06-17
      这个问题解决了,通过程序调用生成支付参数就可以,之前直接postman掉用的。想问另外一个问题自定义交易组件里面没有看到用户维度查询的订单列表?小程序里面想做订单列表要怎么弄?
      2022-06-17
      回复
登录 后发表内容