JSONObject claimRequestJson = new JSONObject();
claimRequestJson.put("openid", item.getOpenId());
claimRequestJson.put("order_no", item.getTransactionId());
claimRequestJson.put("refund_delivery_no", item.getDeliveryNo());
claimRequestJson.put("refund_company", item.getDeliveryId());
//理赔接口
String claimRequestUrl = getRequestUrl(ResourceUtil.getConfigByName("wx.insurance_freight_claim"), token);
logger.info("理赔接口" + claimRequestUrl + "入参信息:" + claimRequestJson);
String claimResult = HttpUtil.sendPostRequest(claimRequestUrl, claimRequestJson.toString(), "uTF-8");
logger.info("理赔接口" + claimRequestUrl + "出参信息:" + claimResult);
//组装请求路径无忧退款解绑接口
String requestUrl = getRequestUrl(ResourceUtil.getConfigByName("wx.delivery_no_worry_return_unbind"), null);
String jsonString = JSONObject.toJSONString(params);
String result = HttpUtil.sendPostRequest(requestUrl, jsonString, "uTF-8");
JSONObject jsonObject = JSONObject.parseObject(result);
if (!ObjectUtils.equals(jsonObject.getString("errcode"), "0")) {
throw new ApiRRException(result, ApiRRException.INTERFACE_FAIL);
}
无忧退货理赔后需要解绑吗
不需要