修复每日动画被固定成true的问题
This commit is contained in:
parent
34dc1c2210
commit
92fc97e128
@ -9,7 +9,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ToolsApplication {
|
||||
public static final String version="1.0.15";
|
||||
public static final String version="1.0.15.01";
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("当前版本号:"+version);
|
||||
|
@ -190,8 +190,9 @@ public class BangumiTools {
|
||||
* @return 番剧列表
|
||||
*/
|
||||
public static String reportToDayBangumi() {
|
||||
if (!RedisTools.get("reportToDayBangumi").equals("true")) {
|
||||
RedisTools.set("reportToDayBangumi", "true");
|
||||
String toDayTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
|
||||
if (!RedisTools.get("reportToDayBangumi").equals(toDayTime)) {
|
||||
RedisTools.set("reportToDayBangumi", toDayTime);
|
||||
StringBuilder builder = new StringBuilder();
|
||||
JSONObject toDay = getBangumi(0);
|
||||
if (toDay == null) {
|
||||
|
@ -120,7 +120,6 @@ public class QQBotManager {
|
||||
public String sendMessage(String text) {
|
||||
if (bot != null) {
|
||||
try {
|
||||
System.out.println("发送QQ");
|
||||
return Objects.requireNonNull(bot.getGroup(qqGroup)).sendMessage(text).toString();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user