涩图模块:修复每日统计没效果
This commit is contained in:
parent
7e1a0d6b92
commit
fd5e32508f
@ -43,6 +43,7 @@ public class GetSeTu extends Model {
|
|||||||
if ("00:00:00".equals(time)) {
|
if ("00:00:00".equals(time)) {
|
||||||
del();
|
del();
|
||||||
} else if (RedisTools.get("Setu_time", "23:59:00").equals(time)) {
|
} else if (RedisTools.get("Setu_time", "23:59:00").equals(time)) {
|
||||||
|
Log.i(time+"--------------");
|
||||||
send();
|
send();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,6 +75,7 @@ public class GetSeTu extends Model {
|
|||||||
JSONArray array = JSONArray.parseArray(ret);
|
JSONArray array = JSONArray.parseArray(ret);
|
||||||
builder = new MessageChainBuilder();
|
builder = new MessageChainBuilder();
|
||||||
builder.append("各位老色胚们晚上好,现在公布本群涩图数据!");
|
builder.append("各位老色胚们晚上好,现在公布本群涩图数据!");
|
||||||
|
builder.append("\n");
|
||||||
builder.append("本群今日共查询:");
|
builder.append("本群今日共查询:");
|
||||||
builder.append(String.valueOf(array.size()));
|
builder.append(String.valueOf(array.size()));
|
||||||
builder.append("次!\n");
|
builder.append("次!\n");
|
||||||
@ -89,6 +91,7 @@ public class GetSeTu extends Model {
|
|||||||
Long maxQQ = -1L;
|
Long maxQQ = -1L;
|
||||||
int max = -1;
|
int max = -1;
|
||||||
for (Long qq : map.keySet()) {
|
for (Long qq : map.keySet()) {
|
||||||
|
builder.append("------------------\n");
|
||||||
List<String> list = map.get(qq);
|
List<String> list = map.get(qq);
|
||||||
if (list.size() > max) {
|
if (list.size() > max) {
|
||||||
max = list.size();
|
max = list.size();
|
||||||
@ -99,6 +102,7 @@ public class GetSeTu extends Model {
|
|||||||
for (String tag : list) {
|
for (String tag : list) {
|
||||||
builder.append(tag).append("\n");
|
builder.append(tag).append("\n");
|
||||||
}
|
}
|
||||||
|
builder.append("------------------\n");
|
||||||
}
|
}
|
||||||
builder.append("那么今日最色批的就是:");
|
builder.append("那么今日最色批的就是:");
|
||||||
builder.append(new At(maxQQ));
|
builder.append(new At(maxQQ));
|
||||||
|
Loading…
Reference in New Issue
Block a user