Commit 19a6fc79a2396be5cdd0ee60e9fb017b2124e720
Committed by
Gitee
1 parent
dbf237a1
调用获取地址参数顺序错误
Signed-off-by: plimlips <156839224@qq.com>
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/order/TradeOrderServiceImpl.java
| ... | ... | @@ -156,7 +156,7 @@ public class TradeOrderServiceImpl implements TradeOrderService { |
| 156 | 156 | * @return 收件地址 |
| 157 | 157 | */ |
| 158 | 158 | private AddressRespDTO validateAddress(Long userId, Long addressId) { |
| 159 | - AddressRespDTO address = addressApi.getAddress(userId, addressId); | |
| 159 | + AddressRespDTO address = addressApi.getAddress(addressId, userId); | |
| 160 | 160 | if (Objects.isNull(address)) { |
| 161 | 161 | throw exception(ErrorCodeConstants.ORDER_CREATE_ADDRESS_NOT_FOUND); |
| 162 | 162 | } | ... | ... |