2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

fix: mysql check

This commit is contained in:
耗子
2023-08-13 11:21:30 +08:00
parent 905aaf102b
commit 94569cca02
2 changed files with 8 additions and 0 deletions

View File

@@ -460,6 +460,10 @@ func (c *Mysql57Controller) DeleteDatabase(ctx http.Context) {
// BackupList 获取备份列表
func (c *Mysql57Controller) BackupList(ctx http.Context) {
if !controllers.Check(ctx, "mysql57") {
return
}
backupList, err := c.backup.MysqlList()
if err != nil {
facades.Log().Error("[MySQL57] 获取备份列表失败:" + err.Error())

View File

@@ -460,6 +460,10 @@ func (c *Mysql80Controller) DeleteDatabase(ctx http.Context) {
// BackupList 获取备份列表
func (c *Mysql80Controller) BackupList(ctx http.Context) {
if !controllers.Check(ctx, "mysql80") {
return
}
backupList, err := c.backup.MysqlList()
if err != nil {
facades.Log().Error("[MySQL80] 获取备份列表失败:" + err.Error())