涩图模块:修复每日统计没效果
This commit is contained in:
parent
7776fb3d01
commit
4d156ad861
@ -42,7 +42,7 @@ public class GetSeTu extends Model {
|
||||
super.onTime(qq, time);
|
||||
if ("00:00:00".equals(time)) {
|
||||
del();
|
||||
} else if ("23:59:00".equals(time)) {
|
||||
} else if (RedisTools.get("Setu_time","23:59:00").equals(time)) {
|
||||
send();
|
||||
}
|
||||
}
|
||||
@ -62,6 +62,7 @@ public class GetSeTu extends Model {
|
||||
redis.select(RedisTools.QQBOT_USER);
|
||||
Set<String> keys = redis.keys("Setu_*");
|
||||
redis.close();
|
||||
Log.i("进入涩图打印");
|
||||
for (String key : keys) {
|
||||
String ret = RedisTools.get(key);
|
||||
MessageChainBuilder builder = null;
|
||||
|
@ -106,6 +106,14 @@ public class RedisTools {
|
||||
return get(key+"", QQBOT_USER);
|
||||
}
|
||||
|
||||
public static String get(Object key,String defValue){
|
||||
String ret=get(key);
|
||||
if(StringUtils.isEmpty(ret)){
|
||||
return defValue;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static boolean remove(String key) {
|
||||
return remove(key,QQBOT_USER);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user