添加Bark

整合 推送通知功能;
优化、简化系统设置选项;
This commit is contained in:
兔姬桑
2020-04-14 02:21:09 +08:00
parent 0e2e5f61dd
commit 5689018af0
50 changed files with 553 additions and 457 deletions

12
sql/mod/20200412.sql Normal file
View File

@@ -0,0 +1,12 @@
rename table `email_log` to `notification_log`;
alter table `notification_log` COMMENT = '通知投递记录';
alter table `notification_log` CHANGE `type` `type` TINYINT(4) NOT NULL DEFAULT '1' COMMENT '类型1-邮件、2-ServerChan、3-Bark';
-- 加入Bark通知
insert into `config` VALUES ('104', 'bark_key', '');
update `config` SET `name` = 'is_node_offline' where `config`.`id` = 37;
update `config` SET `name` = 'is_notification', `value` = '0' where `config`.`id` = 39;
update `config` SET `name` = 'is_email_filtering',`value` = '0' where `config`.`id` = 58;
update `config` SET `name` = 'detection_check_times' where `config`.`id` = 68;
update `config` SET `name` = 'is_activate_account', `value` = '0' where `config`.`id` = 73;
update `config` SET `name` = 'offline_check_times', `value` = '10' where `config`.`id` = 98;