涩图模块:修复每日统计没效果
This commit is contained in:
parent
e96bdefb67
commit
a90d493975
@ -60,11 +60,10 @@ public class GetSeTu extends Model {
|
||||
private void send(Long group) {
|
||||
Jedis redis = RedisTools.getRedis();
|
||||
redis.select(RedisTools.QQBOT_USER);
|
||||
String key = redis.get("Setu_"+group);
|
||||
String ret = redis.get("Setu_"+group);
|
||||
redis.close();
|
||||
String ret = RedisTools.get(key);
|
||||
MessageChainBuilder builder = null;
|
||||
Log.i(key, ret);
|
||||
Log.i(group+"", ret);
|
||||
if (!StringUtils.isEmpty(ret)) {
|
||||
JSONArray array = JSONArray.parseArray(ret);
|
||||
builder = new MessageChainBuilder();
|
||||
@ -106,7 +105,7 @@ public class GetSeTu extends Model {
|
||||
}
|
||||
Log.i("打印色图统计:" + builder);
|
||||
if (builder != null) {
|
||||
QQBotManager.getInstance().sendMessage(Long.parseLong(key.replace("Setu_", "")), builder);
|
||||
QQBotManager.getInstance().sendMessage(group, builder);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user