!307 调用获取地址参数顺序错误

Merge pull request !307 from plimlips/N/A
This commit is contained in:
芋道源码
2022-11-23 11:28:26 +00:00
committed by Gitee

View File

@ -156,7 +156,7 @@ public class TradeOrderServiceImpl implements TradeOrderService {
* @return 收件地址
*/
private AddressRespDTO validateAddress(Long userId, Long addressId) {
AddressRespDTO address = addressApi.getAddress(userId, addressId);
AddressRespDTO address = addressApi.getAddress(addressId, userId);
if (Objects.isNull(address)) {
throw exception(ErrorCodeConstants.ORDER_CREATE_ADDRESS_NOT_FOUND);
}