🎨做了一些bug修复和变动

This commit is contained in:
coward
2024-05-24 15:19:26 +08:00
parent e216725096
commit e172b3c838
12 changed files with 64 additions and 49 deletions

View File

@@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"gitee.ltd/lxh/logger/log"
"github.com/spf13/cast"
"os"
"strconv"
"wireguard-dashboard/client"
@@ -95,7 +96,7 @@ func asyncWireguardConfigFile() {
CreatedAt: v.CreatedAt.String(),
UpdatedAt: v.UpdatedAt.String(),
CreateUser: createUserName,
Enabled: v.Enabled,
Enabled: cast.ToBool(v.Enabled),
})
}