1
0
mirror of synced 2025-12-25 03:47:55 +08:00

🐛 #3675 【小程序】修复退货组件 API 接口请求方法错误的问题

This commit is contained in:
Copilot
2025-11-28 11:15:41 +08:00
committed by GitHub
parent 1bd50d4d2f
commit 9940546956

View File

@@ -14,23 +14,23 @@ public class WxMaExpressDeliveryReturnServiceImpl implements WxMaExpressDelivery
@Override
public WxMaExpressReturnInfoResult addDeliveryReturn(WxMaExpressDeliveryReturnAddRequest wxMaExpressDeliveryReturnAddRequest) throws WxErrorException {
String result= this.service.get(ADD_DELIVERY_RETURN_URL,wxMaExpressDeliveryReturnAddRequest.toJson());
String result = this.service.post(ADD_DELIVERY_RETURN_URL, wxMaExpressDeliveryReturnAddRequest.toJson());
return WxMaExpressReturnInfoResult.fromJson(result);
}
@Override
public WxMaExpressReturnInfoResult getDeliveryReturn(String returnId) throws WxErrorException {
JsonObject param = new JsonObject();
param.addProperty("return_id",returnId);
String result= this.service.get(GET_DELIVERY_RETURN_URL,param.toString());
param.addProperty("return_id", returnId);
String result = this.service.post(GET_DELIVERY_RETURN_URL, param);
return WxMaExpressReturnInfoResult.fromJson(result);
}
@Override
public WxMaExpressReturnInfoResult unbindDeliveryReturn(String returnId) throws WxErrorException {
JsonObject param = new JsonObject();
param.addProperty("return_id",returnId);
String result= this.service.get(UNBIND_DELIVERY_RETURN_URL,param.toString());
param.addProperty("return_id", returnId);
String result = this.service.post(UNBIND_DELIVERY_RETURN_URL, param);
return WxMaExpressReturnInfoResult.fromJson(result);
}
}