Commit 8c74f67e by 徐康

异常信息处理

parent 816a4f16
......@@ -2548,7 +2548,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
pushMccafeOrder.setStoreId(orderInfoReqs.getStoreId());
if(!"SUCCESS".equals(responseDto.getCode())) {
pushMccafeOrder.setStatus(0);
pushMccafeOrder.setFailReason(responseDto.getMessage());
pushMccafeOrder.setFailReason(JSON.toJSONString(responseDto));
} else {
pushMccafeOrder.setStatus(1);
}
......@@ -2828,7 +2828,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
QueryReceiveAddressRequest request = new QueryReceiveAddressRequest(JSON.parseObject(deliveryContactInfoResp.getExtInfo()).getString("receiveId"), mcCafePartnerId);
com.freemud.application.sdk.api.base.BaseResponse<QueryReceiveAddressResponse> queryReceiveAddressResponse = memberCenterService.queryReceiveAddressById(request, LogThreadLocal.getTrackingNo());
if (!ResponseResult.SUCCESS.getCode().equals(queryReceiveAddressResponse.getCode()) || queryReceiveAddressResponse.getData() == null) {
throw new ServiceException(ResponseResult.USER_GETRECEIVEADDRESS_ERROR);
throw new ServiceException(ResponseResult.USER_GETRECEIVEADDRESS_ERROR, "查询收货地址异常");
}
orderAddress.setGender(queryReceiveAddressResponse.getData().getSex().toString());
orderAddress.setPhone_no(queryReceiveAddressResponse.getData().getReceiveMobile());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment