大头菜改为只允许私聊设置
修复涩图功能
This commit is contained in:
parent
191a1fc6ed
commit
95141649dc
@ -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());
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user