diff --git a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserProfileClientServiceImpl.java b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserProfileClientServiceImpl.java index 03d5981d..ab5e55ec 100644 --- a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserProfileClientServiceImpl.java +++ b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserProfileClientServiceImpl.java @@ -1,5 +1,6 @@ package com.red.circle.other.app.inner.service.user.user.impl; +import cn.hutool.core.util.StrUtil; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.collect.Maps; @@ -152,7 +153,7 @@ public class UserProfileClientServiceImpl implements UserProfileClientService { log.error("getByUserId Failed to convert user profile to json string", e); return user; } - if (Objects.nonNull(jsonString)) { + if (StrUtil.isNotBlank(jsonString) && !"null".equals(jsonString)) { userRunProfileCacheService.save(jsonString, userId); } return user; diff --git a/rc-service/rc-service-wallet/wallet-application/src/main/java/com/red/circle/wallet/app/command/freight/SendFreightShipCmdExe.java b/rc-service/rc-service-wallet/wallet-application/src/main/java/com/red/circle/wallet/app/command/freight/SendFreightShipCmdExe.java index bdddde43..8cb88eaf 100644 --- a/rc-service/rc-service-wallet/wallet-application/src/main/java/com/red/circle/wallet/app/command/freight/SendFreightShipCmdExe.java +++ b/rc-service/rc-service-wallet/wallet-application/src/main/java/com/red/circle/wallet/app/command/freight/SendFreightShipCmdExe.java @@ -7,12 +7,14 @@ import com.red.circle.common.business.enums.IncomeExpenditureEnum; import com.red.circle.component.redis.service.RedisService; import com.red.circle.framework.core.asserts.ResponseAssert; import com.red.circle.framework.core.response.CommonErrorCode; +import com.red.circle.framework.dto.ResultResponse; import com.red.circle.mq.business.model.event.task.TaskApprovalEvent; import com.red.circle.mq.rocket.business.producer.TaskMqMessage; import com.red.circle.order.inner.endpoint.UserRechargeCountClient; import com.red.circle.order.inner.model.enums.MonthlyRechargeType; import com.red.circle.other.inner.endpoint.activity.AppRankCountClient; import com.red.circle.other.inner.endpoint.activity.CumulativeRechargeClient; +import com.red.circle.other.inner.model.dto.user.UserProfileDTO; import com.red.circle.tool.core.date.LocalDateTimeUtils; import com.red.circle.tool.core.json.JacksonUtils; import com.red.circle.tool.core.num.ArithmeticUtils; @@ -77,8 +79,8 @@ public class SendFreightShipCmdExe { // ) // ); - ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, - userProfileClient.getByUserId(cmd.getAcceptUserId())); + ResultResponse response = userProfileClient.getByUserId(cmd.getAcceptUserId()); + ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND,response.getBody()); // 账号已关闭 ResponseAssert.isFalse(UserErrorCode.ACCOUNT_CLOSED,