This commit is contained in:
Yutousama 2022-07-18 11:48:31 +08:00
parent 67587d208b
commit 10675c373a

View File

@ -3,6 +3,7 @@ package com.yutou.qqbot.models.WebSign;
import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONArray;
import com.yutou.qqbot.Annotations.UseModel; import com.yutou.qqbot.Annotations.UseModel;
import com.yutou.qqbot.QQBotManager;
import com.yutou.qqbot.models.Model; import com.yutou.qqbot.models.Model;
import com.yutou.qqbot.utlis.ConfigTools; import com.yutou.qqbot.utlis.ConfigTools;
import com.yutou.qqbot.utlis.StringUtils; import com.yutou.qqbot.utlis.StringUtils;
@ -32,7 +33,11 @@ public class ZhuZhu extends Model {
public synchronized void onTime(Long qq, String time) { public synchronized void onTime(Long qq, String time) {
super.onTime(qq, time); super.onTime(qq, time);
if ("09:01:00".equals(time)) { if ("09:01:00".equals(time)) {
sign(); if(sign()){
QQBotManager.getInstance().sendMessage("HiRes论坛签到成功");
}else{
QQBotManager.getInstance().sendMessage("HiRes论坛签到失败");
}
} }
} }