修复大头菜数据未被记录的问题

This commit is contained in:
Yutousama 2021-12-09 22:23:25 +08:00
parent 95141649dc
commit 512928c8ad

View File

@ -36,7 +36,7 @@ public class TurnipProphet extends Model {
} }
int nowTime; static int nowTime;
@Override @Override
public boolean isUserPublic() { public boolean isUserPublic() {
@ -53,7 +53,7 @@ public class TurnipProphet extends Model {
@Override @Override
public void onMessage(Long qq, MessageEvent event, boolean isGroup) { public void onMessage(Long qq, MessageEvent event, boolean isGroup) {
super.onMessage(qq, event, isGroup); super.onMessage(qq, event, isGroup);
if(isGroup){ if (isGroup) {
return; return;
} }
int money = -1; int money = -1;
@ -186,8 +186,8 @@ public class TurnipProphet extends Model {
String tmp_pattern = sendQQ(map, prices, pattern, qq); String tmp_pattern = sendQQ(map, prices, pattern, qq);
if (!StringUtils.isEmpty(tmp_pattern)) { if (!StringUtils.isEmpty(tmp_pattern)) {
json.put("pattern", tmp_pattern); json.put("pattern", tmp_pattern);
RedisTools.set(redisKey, json.toJSONString());
} }
RedisTools.set(redisKey, json.toJSONString());
} catch (Exception e) { } catch (Exception e) {
setData(money, qq); setData(money, qq);