大头菜改为只允许私聊设置

修复涩图功能
This commit is contained in:
Yutousama 2021-12-09 13:45:48 +08:00
parent 191a1fc6ed
commit 95141649dc
2 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,9 @@ public class TurnipProphet extends Model {
@Override
public void onMessage(Long qq, MessageEvent event, boolean isGroup) {
super.onMessage(qq, event, isGroup);
if(isGroup){
return;
}
int money = -1;
try {
money = Integer.parseInt(msg.trim());

View File

@ -28,7 +28,7 @@ public class QQSetu extends Model {
private int db_user =3;//当次数据
private long group;
private Timer timer;
private final Map<String, Float> setuScore = new HashMap<>();
private static final Map<String, Float> setuScore = new HashMap<>();
public void printTodaySetu() {
String redisKey= AppTools.getToDayTime() + "_setu";
@ -121,6 +121,7 @@ public class QQSetu extends Model {
if(!setuScore.isEmpty()){
printSetu(group);
}
timer.cancel();
timer = null;
}
}, (long) (0.9 * 60 * 1000));