From d6200afa611e767aea14f462e1f61594d6a703d8 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Sun, 21 Sep 2025 23:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=EF=BC=8C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=A0=A1=E9=AA=8C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/user/impl/UserProfileClientServiceImpl.java | 3 ++- .../wallet/app/command/freight/SendFreightShipCmdExe.java | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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,