收藏
回答

自定义交易组件生成订单接口一直报订单时间非法?

时间是当前时间,但是还是报{"errcode":1010039,"errmsg":"订单过期时间非法 rid: 6241a599-4dd63454-2d86223d"}

{

    "address_info":{

        "detailed_address":"陕西省西安市新城区测试",

        "tel_number":"135300*****",

        "receiver_name":"吴先生"

    },

    "create_time":"2022-04-01 11:31:20",

    "fund_type":1,

    "openid":"o4urn5TMsCJxV7gAEo********",

    "expire_time":1648783880,

    "order_detail":{

        "price_info":{

            "freight":1600,

            "order_price":9632

        },

        "product_infos":[

            {

                "out_sku_id":"1491693369080709121",

                "product_cnt":1,

                "head_img":"https://ishop-20200723.oss-cn-beijing.aliyuncs.com/1/material/dd1e5de5-ea9e-4118-9ffb-b43365b44b09.jpg",

                "title":"清道夫工具生物",

                "sale_price":3600,

                "path":"/pages/goods/goods-detail/index?id=1491693369068126209",

                "out_product_id":"1491693369068126209",

                "sku_real_price":3312

            },

            {

                "out_sku_id":"1375265876317372418",

                "product_cnt":1,

                "head_img":"https://ishop-20200723.oss-cn-beijing.aliyuncs.com/1/material/0c1da2f7-7c3e-4531-95dd-030771123b36.jpg",

                "title":"三点白黑色白点 ",

                "sale_price":3500,

                "path":"/pages/goods/goods-detail/index?id=1375016428236505090",

                "out_product_id":"1375016428236505090",

                "sku_real_price":3220

            }

        ]

    },

    "scene":"1037",

    "out_order_id":"1501239919125479426"

}

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

1 个回答

  • Memory (私信不回复)
    Memory (私信不回复)
    2022-04-01

    你“create_time”是“2022-04-01 11:31:20”,“expire_time”你传“1648783880”,你自己看看转换,传一致的?你再看看字段要求

    2022-04-01
    有用 1
    回复 3
    • 子非鱼
      子非鱼
      2022-04-01
      试过了,还是报订单时间非法的异常
      2022-04-01
      回复
    • Memory (私信不回复)
      Memory (私信不回复)
      2022-04-01回复子非鱼
      到期时间要大于创建时间,你这一致的肯定非法啊
      2022-04-01
      1
      回复
    • 子非鱼
      子非鱼
      2022-04-01
      非常感谢
      2022-04-01
      回复
登录 后发表内容