// +----------------------------------------------------------------------
// | 主机管理 By Bty5.0
// +----------------------------------------------------------------------
// | Copyright (c) 2020 https://www.youngxj.cn
// +----------------------------------------------------------------------
// | Author: Youngxj 1170535111@qq.com
// +--------------------------------------------------------------------
更新时间:
2020年5月19日
发布人:
Youngxj
更新介绍:
- 修正其他商品IP内容
- 修正其他商品创建时间bug
- 修正其他商品续费报错status
- 修正其他商品续费时间选择有误
- 优化页面
- 新增计划任务基础接口(服务器到期、主机到期、主机资源、产品到期)
- 优化价格显示
- 优化停用服务器不效验api接口
- 优化主机列表选项卡无主机不显示
- 修复其他BUG
截图

更新方式:
sql:
仅供参考,请勿直接执行
ALTER TABLE `__db_prefix__vhost_bt`
MODIFY COLUMN `check_time` int(11) NULL DEFAULT 0 COMMENT '最后检查时间' AFTER `bt_name`;
INSERT INTO `__db_prefix__auth_rule` (`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', '2', 'general/queue', '计划任务', 'fa fa-globe', '', '', '1', '1589807202', '1589807202', '0', 'normal');
INSERT INTO `__db_prefix__config` (`name`, `group`, `title`, `tip`, `type`, `value`, `content`, `rule`, `extend`) VALUES ('queue_key', 'basic', '计划任务密钥', '防止接口被恶意调用', 'string', 'eBWgOQAGmilV', '', 'required', '');
UPDATE `__db_prefix__user_rule` SET `name`='index/user/moneylog' WHERE (`id`='14');
DROP TABLE IF EXISTS `__db_prefix__queue_log`;
CREATE TABLE `__db_prefix__queue_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`createtime` int(11) NOT NULL COMMENT '执行时间',
`logs` text COMMENT '执行结果',
`call_time` varchar(32) DEFAULT NULL COMMENT '运行时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8 COMMENT='任务队列日志表';
DROP TABLE IF EXISTS `__db_prefix__queue`;
CREATE TABLE `__db_prefix__queue` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`function` varchar(32) NOT NULL COMMENT '执行方法',
`createtime` int(11) NOT NULL COMMENT '添加时间',
`updatetime` int(11) DEFAULT NULL COMMENT '修改时间',
`runtime` int(11) DEFAULT NULL COMMENT '最后运行时间',
`executetime` int(11) NOT NULL DEFAULT '0' COMMENT '执行间隔时间(s)',
`status` enum('normal','hidden') NOT NULL DEFAULT 'hidden' COMMENT '状态',
`weigh` int(10) DEFAULT '0' COMMENT '执行权重,越大越前',
`configgroup` varchar(255) DEFAULT '' COMMENT '额外配置',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='任务对列表';
INSERT INTO `__db_prefix__queue` VALUES ('1', 'btresource', '1589730915', '1589809846', '1589809846', '60', 'normal', '4', '');
INSERT INTO `__db_prefix__queue` VALUES ('2', 'server', '1589730915', '1589809846', '1589809846', '43200', 'normal', '3', '');
INSERT INTO `__db_prefix__queue` VALUES ('3', 'host', '1589730915', '1589809846', '1589809846', '21600', 'normal', '2', '');
INSERT INTO `__db_prefix__queue` VALUES ('4', 'customize', '1589730915', '1589809834', '1589809834', '43200', 'normal', '5', '');
INSERT INTO `__db_prefix__queue` VALUES ('5', 'email', '1589730915', '1589809846', '1589809846', '1', 'normal', '1', '');
涉及文件: