|
|
@@ -20,6 +20,8 @@ import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.dromara.common.redis.utils.RedisUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
@@ -49,6 +51,9 @@ public class UserServiceImpl implements IUserService {
|
|
|
|
|
|
private final PlayersItemsLogMapper playersItemsLogMapper;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 查询【请填写功能名称】
|
|
|
*
|
|
|
@@ -320,7 +325,7 @@ public class UserServiceImpl implements IUserService {
|
|
|
if (updateCount <= 0) {
|
|
|
throw new RuntimeException("道具发放失败");
|
|
|
}
|
|
|
-
|
|
|
+ RedisUtils.publish("channel:item_updates", bo.getUserId());
|
|
|
return Boolean.TRUE;
|
|
|
|
|
|
} finally {
|