diff --git a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java index 55a18e0..430d084 100644 --- a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java +++ b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java @@ -61,8 +61,8 @@ public class GetSeTu extends Model { Jedis redis = RedisTools.getRedis(); redis.select(RedisTools.QQBOT_USER); Set keys = redis.keys("Setu_*"); + Log.i("进入涩图打印:"+keys.size()); redis.close(); - Log.i("进入涩图打印"); for (String key : keys) { String ret = RedisTools.get(key); MessageChainBuilder builder = null; @@ -103,8 +103,8 @@ public class GetSeTu extends Model { builder.append("明天见~"); } Log.i("打印色图统计:"+builder); - if (builder != null) { - QQBotManager.getInstance().sendMessage(Long.parseLong(ret.replace("Setu_", "")), builder); + if (builder != null&& !"Setu_time".equals(key)) { + QQBotManager.getInstance().sendMessage(Long.parseLong(key.replace("Setu_", "")), builder); } } }