收藏
回答

更新订单可售后期限 接口报错 api unauthorized 如何处理?

小程序 自定义交易组件接口 更新订单可售后期限

https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/aftersale/update_deadline.html


这个接口中的请求参数说明中的 address_info 字段 只标识为 类型 AddressInfo 没有具体的内容,我使用下单接口中的 address_info 样式拼接的请求参数如下

Array
(
    [out_order_id] => 202205081552583220353532
    [openid] => oUZ4Y44zYemfi01Bd6L65skILz9k
    [address_info] => Array
        (
            [receiver_name] => 张三
            [detailed_address] => 新港中路3971
            [tel_number] => 13355254471
        )

    [after_sale_deadline] => 1652605594


调试n遍仍然报错 api unauthorized

订单状态如下

Array
(
    [errcode] => 0
    [order] => Array
        (
            [order_id] => 3303147379889144832
            [out_order_id] => 202205081552583220353532
            [openid] => oUZ4Y44zYemfi01Bd6L65skILz9k
            [create_time] => 2022-05-08 15:52:58
            [order_detail] => Array
                (
                    [product_infos] => Array
                        (
                            [0] => Array
                                (
                                    [product_id] => 447351257
                                    [out_product_id] => 1
                                    [out_sku_id] => 51
                                    [product_cnt] => 1
                                    [sale_price] => 1
                                    [title] => 纯白塑料桌面收纳盒
                                    [head_img] => http://mxmini.oss-cn-shanghai.aliyuncs.com/20220501152103e065e9524.jpg?x-oss-process=style/width600
                                    [path] => pages/sharing/goods/index?goods_id=1
                                    [sku_attrs] => Array
                                        (
                                        )

                                    [sku_real_price] => 1
                                    [can_after_sale] => 1
                                )

                        )

                    [pay_info] => Array
                        (
                            [prepay_id] => wx08155258957747b8cc2d7f5fdf22880000
                            [prepay_time] => 2022-05-08 15:52:59
                            [transaction_id] => 4200001436202205089756356702
                            [pay_time] => 2022-05-08 15:53:21
                            [pay_method_type] => 0
                            [out_trade_no] => 120330314737988914483200000
                            [midas_order_id] => 
                        )

                    [price_info] => Array
                        (
                            [freight] => 1
                            [final_price] => 2
                            [order_price] => 2
                        )

                    [pay_info_list] => Array
                        (
                        )

                    [promotion_info] => Array
                        (
                        )

                )

            [delivery_detail] => Array
                (
                    [delivery_type] => 1
                    [delivery_list] => Array
                        (
                            [0] => Array
                                (
                                    [waybill_id] => 75870188453076
                                    [delivery_id] => YTO
                                    [product_info_list] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [out_product_id] => 1
                                                    [out_sku_id] => 51
                                                    [product_cnt] => 1
                                                )

                                        )

                                )

                        )

                    [ship_done_time] => 2022-05-08 15:53:56
                )

            [status] => 100
            [path] => pages/sharing/order/index?order_id=1
            [update_time] => 2022-05-08 16:09:30
            [address_info] => Array
                (
                    [receiver_name] => 张三
                    [detailed_address] => 新港中路3971
                    [tel_number] => 020-81167888
                )

            [out_user_id] => 42
            [fund_type] => 1
            [settlement_info] => Array
                (
                    [max_handing_fee] => 0
                    [max_unsplit_amount] => 2
                    [settlement_list] => Array
                        (
                            [0] => Array
                                (
                                    [type] => 0
                                    [uin] => 3810041425
                                    [amount] => 2
                                )

                        )

                    [handing_fee_dyn] => 0
                    [merchant_settle] => 2
                    [settle_status] => 1
                )

            [expire_time] => 1652169178
            [trace_id] => 1_nzbVy5JkL71alLjA_HeNldJxbMFAl7iFsUvJchNpfJs
        )

)


希望尽快给予答复,谢谢

最后一次编辑于  2022-05-08
回答关注问题邀请回答
收藏

1 个回答

  • Riven.
    Riven.
    2022-05-09

    你好,重试下看看?

    2022-05-09
    有用
    回复
登录 后发表内容