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

This commit is contained in:
Yutousama 2022-04-22 00:28:46 +08:00
parent 7e1a0d6b92
commit fd5e32508f

View File

@ -43,6 +43,7 @@ public class GetSeTu extends Model {
if ("00:00:00".equals(time)) {
del();
} else if (RedisTools.get("Setu_time", "23:59:00").equals(time)) {
Log.i(time+"--------------");
send();
}
}
@ -74,6 +75,7 @@ public class GetSeTu extends Model {
JSONArray array = JSONArray.parseArray(ret);
builder = new MessageChainBuilder();
builder.append("各位老色胚们晚上好,现在公布本群涩图数据!");
builder.append("\n");
builder.append("本群今日共查询:");
builder.append(String.valueOf(array.size()));
builder.append("次!\n");
@ -89,6 +91,7 @@ public class GetSeTu extends Model {
Long maxQQ = -1L;
int max = -1;
for (Long qq : map.keySet()) {
builder.append("------------------\n");
List<String> list = map.get(qq);
if (list.size() > max) {
max = list.size();
@ -99,6 +102,7 @@ public class GetSeTu extends Model {
for (String tag : list) {
builder.append(tag).append("\n");
}
builder.append("------------------\n");
}
builder.append("那么今日最色批的就是:");
builder.append(new At(maxQQ));