收藏
回答

(已解决) 更新【用户提交售后申请】接口报错:"请求体缺失售后商品"是什么原因?

【缘由】

用了旧接口shop/aftersale/add,然后参数按照新接口的传,换成新接口shop/ecaftersale/add后正常了。


目前情况】:

分别有fund_type=0和fund_type=1的已完成订单(status=100),然后申请售后时出现了报错。


报错信息】:

"请求体缺失售后商品 rid: 628c9cfa-3d01debc-3ddba3a8"  (fund_type=0"请求体缺失售后商品 rid: 628cb65f-1a00a6c3-0b4e4a04"  (fund_type=1)


【用户提交售后申请接口请求的参数(fund_type=1)】:

{
    "out_order_id": "99990000",
    "out_aftersale_id": "52512112312262",
    "openid": "xxxxxx",
    "type": 2,
    "product_info": {
        "out_product_id": "1234566",
        "out_sku_id": "128",
        "product_cnt": 1
    },
    "orderamt": 1,
    "refund_reason": "其它",
    "refund_reason_type": 15
}


【接口传到后端的参数】

array:8 [
  "out_order_id" => "99990000"
  "out_aftersale_id" => "52512112312262"
  "openid" => "xxxxxx"
  "type" => 2
  "product_info" => array:3 [
    "out_product_id" => "1234566"
    "out_sku_id" => "128"
    "product_cnt" => 1
  ]
  "orderamt" => 1
  "refund_reason" => "其它"
  "refund_reason_type" => 15
]


【完成的订单信息(fund_type=1)】:

{
  "order_id": 3303511941884806700,
  "out_order_id": "99990000",
  "openid": "xxxxxx",
  "create_time": "2022-05-24 18:11:12",
  "order_detail": {
    "product_infos": [
      {
        "product_id": 476205490,
        "out_product_id": "1234566",
        "sku_id": 765193540,
        "out_sku_id": "128",
        "product_cnt": 1,
        "sale_price": 1,
        "title": "T恤男2021夏季新品宽松落肩短袖衫渐变字母印花简约耐看不挑人男女同款青春流行圆",
        "head_img": "https://mmecimage.cn/p/wx60eac17f91d3715d/HKW2eyrYX8USu2ADuSd9G6VGEtb4H-UV7u68vCWwcQ",
        "path": "pages/productDetail/productDetail?productId=2176180",
        "sku_attrs": [
          {
            "attr_key": "选择颜色",
            "attr_value": "丛林迷彩拼粉红色"
          },
          {
            "attr_key": "选择尺码",
            "attr_value": "6"
          }
        ],
        "sku_real_price": 1,
        "can_after_sale": true
      }
    ],
    "pay_info": {
      "prepay_id": "wx2418111200000007f035974def1f40000",
      "prepay_time": "2022-05-24 18:11:12",
      "transaction_id": "4200001400202205000041608431",
      "pay_time": "2022-05-24 18:34:15",
      "pay_method_type": 0,
      "out_trade_no": "120330351194188480000000000",
      "midas_order_id": ""
    },
    "price_info": {
      "freight": 0,
      "discounted_price": 0,
      "additional_price": 0,
      "additional_remarks": "税费",
      "final_price": 1,
      "order_price": 1
    },
    "pay_info_list": [],
    "promotion_info": []
  },
  "delivery_detail": {
    "delivery_type": 1,
    "delivery_list": [
      {
        "waybill_id": "23424324253",
        "delivery_id": "SF",
        "product_info_list": [
          {
            "out_product_id": "1234566",
            "out_sku_id": "128",
            "product_cnt": 1
          }
        ]
      }
    ],
    "ship_done_time": "2022-05-24 18:36:43"
  },
  "status": 100,
  "path": "pages/productDetail/productDetail?productId=2176180",
  "update_time": "2022-05-24 18:37:59",
  "address_info": {
    "receiver_name": "测试下单",
    "detailed_address": "机场北",
    "tel_number": "18800000000",
    "country": "中国",
    "province": "广东省",
    "city": "广州市",
    "town": "白云区"
  },
  "out_user_id": "326662323",
  "fund_type": 1,
  "settlement_info": {
    "max_handing_fee": 0,
    "max_unsplit_amount": 1,
    "settlement_list": [
      {
        "type": 0,
        "uin": 3846139777,
        "amount": 1
      }
    ],
    "handing_fee_dyn": 0,
    "merchant_settle": 1,
    "settle_status": 1
  },
  "expire_time": 1653473472,
  "aftersale_deadline": 1653993479,
  "default_aftersale_deadline": true
}




【用户提交售后申请接口请求的参数(fund_type=0)】:

{
    "out_order_id": "2997675153",
    "out_aftersale_id": "525121312262",
    "openid": "xxxxxxxx",
    "type": 2,
    "product_info": {
        "out_product_id": "1234566",
        "out_sku_id": 128,
        "product_cnt": 1
    },
    "orderamt": 13100,
    "refund_reason": "其它",
    "refund_reason_type": 15
}


完成的订单信息(fund_type=0)】:

{
    "order_id": 3303509687066036000,
    "out_order_id": "2997675153",
    "openid": "xxxxxxxx",
    "create_time": "2022-05-24 15:47:50",
    "order_detail": {
      "product_infos": [
        {
          "product_id": 476205490,
          "out_product_id": "1234566",
          "sku_id": 765193540,
          "out_sku_id": "128",
          "product_cnt": 1,
          "sale_price": 13000,
          "title": "T恤男2021夏季新品宽松落肩短袖衫渐变字母印花简约耐看不挑人男女同款青春流行圆",
          "head_img": "https://mmecimage.cn/p/wx60eac17f91d3715d/HKW2eyrYX8USu2ADuSd9G6VGEtb4H-UV7u68vCWwcQ",
          "path": "pages/productDetail/productDetail?productId=2176180",
          "sku_attrs": [
            {
              "attr_key": "选择颜色",
              "attr_value": "丛林迷彩拼粉红色"
            },
            {
              "attr_key": "选择尺码",
              "attr_value": "6"
            }
          ],
          "sku_real_price": 13000
        }
      ],
      "pay_info": {
        "pay_time": "2022-05-24 15:48:35",
        "pay_method_type": 2
      },
      "price_info": {
        "freight": 100,
        "discounted_price": 0,
        "additional_price": 0,
        "additional_remarks": "税费",
        "final_price": 13100,
        "order_price": 13100
      },
      "pay_info_list": [],
      "promotion_info": []
    },
    "delivery_detail": {
      "delivery_type": 1,
      "finish_all_delivery": 1,
      "delivery_list": [
        {
          "waybill_id": "23424324253",
          "delivery_id": "SF",
          "product_info_list": [
            {
              "out_product_id": "1234566",
              "out_sku_id": "128",
              "product_cnt": 1
            }
          ]
        }
      ]
    },
    "status": 100,
    "path": "pages/productDetail/productDetail?productId=2176180",
    "update_time": "2022-05-24 15:55:53",
    "address_info": {
      "receiver_name": "测试下单",
      "detailed_address": "机场北",
      "tel_number": "18800000000",
      "country": "中国",
      "province": "广东省",
      "city": "广州市",
      "town": "白云区"
    },
    "out_user_id": "326662323",
    "fund_type": 0,
    "expire_time": 1653464870
  }


最后一次编辑于  2022-05-24
回答关注问题邀请回答
收藏
登录 后发表内容