From 512928c8adba28a2022e4563cf1ac4f4b30202a9 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Thu, 9 Dec 2021 22:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=A7=E5=A4=B4=E8=8F=9C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9C=AA=E8=A2=AB=E8=AE=B0=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yutou/qqbot/models/Animal/TurnipProphet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/models/Animal/TurnipProphet.java b/src/main/java/com/yutou/qqbot/models/Animal/TurnipProphet.java index 442521b..93bc234 100644 --- a/src/main/java/com/yutou/qqbot/models/Animal/TurnipProphet.java +++ b/src/main/java/com/yutou/qqbot/models/Animal/TurnipProphet.java @@ -36,7 +36,7 @@ public class TurnipProphet extends Model { } - int nowTime; + static int nowTime; @Override public boolean isUserPublic() { @@ -53,7 +53,7 @@ public class TurnipProphet extends Model { @Override public void onMessage(Long qq, MessageEvent event, boolean isGroup) { super.onMessage(qq, event, isGroup); - if(isGroup){ + if (isGroup) { return; } int money = -1; @@ -186,8 +186,8 @@ public class TurnipProphet extends Model { String tmp_pattern = sendQQ(map, prices, pattern, qq); if (!StringUtils.isEmpty(tmp_pattern)) { json.put("pattern", tmp_pattern); - RedisTools.set(redisKey, json.toJSONString()); } + RedisTools.set(redisKey, json.toJSONString()); } catch (Exception e) { setData(money, qq);