Skip to content

Commit 9940546

Browse files
authored
🐛 #3675 【小程序】修复退货组件 API 接口请求方法错误的问题
1 parent 1bd50d4 commit 9940546

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressDeliveryReturnServiceImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ public class WxMaExpressDeliveryReturnServiceImpl implements WxMaExpressDelivery
1414

1515
@Override
1616
public WxMaExpressReturnInfoResult addDeliveryReturn(WxMaExpressDeliveryReturnAddRequest wxMaExpressDeliveryReturnAddRequest) throws WxErrorException {
17-
String result= this.service.get(ADD_DELIVERY_RETURN_URL,wxMaExpressDeliveryReturnAddRequest.toJson());
17+
String result = this.service.post(ADD_DELIVERY_RETURN_URL, wxMaExpressDeliveryReturnAddRequest.toJson());
1818
return WxMaExpressReturnInfoResult.fromJson(result);
1919
}
2020

2121
@Override
2222
public WxMaExpressReturnInfoResult getDeliveryReturn(String returnId) throws WxErrorException {
2323
JsonObject param = new JsonObject();
24-
param.addProperty("return_id",returnId);
25-
String result= this.service.get(GET_DELIVERY_RETURN_URL,param.toString());
24+
param.addProperty("return_id", returnId);
25+
String result = this.service.post(GET_DELIVERY_RETURN_URL, param);
2626
return WxMaExpressReturnInfoResult.fromJson(result);
2727
}
2828

2929
@Override
3030
public WxMaExpressReturnInfoResult unbindDeliveryReturn(String returnId) throws WxErrorException {
3131
JsonObject param = new JsonObject();
32-
param.addProperty("return_id",returnId);
33-
String result= this.service.get(UNBIND_DELIVERY_RETURN_URL,param.toString());
32+
param.addProperty("return_id", returnId);
33+
String result = this.service.post(UNBIND_DELIVERY_RETURN_URL, param);
3434
return WxMaExpressReturnInfoResult.fromJson(result);
3535
}
3636
}

0 commit comments

Comments
 (0)