涩图模块:修复每日统计没效果

This commit is contained in:
Yutousama 2022-04-22 00:16:36 +08:00
parent 4d156ad861
commit 938591531d

View File

@ -61,8 +61,8 @@ public class GetSeTu extends Model {
Jedis redis = RedisTools.getRedis(); Jedis redis = RedisTools.getRedis();
redis.select(RedisTools.QQBOT_USER); redis.select(RedisTools.QQBOT_USER);
Set<String> keys = redis.keys("Setu_*"); Set<String> keys = redis.keys("Setu_*");
Log.i("进入涩图打印:"+keys.size());
redis.close(); redis.close();
Log.i("进入涩图打印");
for (String key : keys) { for (String key : keys) {
String ret = RedisTools.get(key); String ret = RedisTools.get(key);
MessageChainBuilder builder = null; MessageChainBuilder builder = null;
@ -103,8 +103,8 @@ public class GetSeTu extends Model {
builder.append("明天见~"); builder.append("明天见~");
} }
Log.i("打印色图统计:"+builder); Log.i("打印色图统计:"+builder);
if (builder != null) { if (builder != null&& !"Setu_time".equals(key)) {
QQBotManager.getInstance().sendMessage(Long.parseLong(ret.replace("Setu_", "")), builder); QQBotManager.getInstance().sendMessage(Long.parseLong(key.replace("Setu_", "")), builder);
} }
} }
} }