fix: website save

This commit is contained in:
耗子
2024-10-11 02:56:28 +08:00
parent ac6c57b394
commit 07bb0961da
6 changed files with 31 additions and 11 deletions
+5
View File
@@ -15,6 +15,11 @@ type LV struct {
Value string `json:"value"`
}
type LVInt struct {
Label string `json:"label"`
Value int `json:"value"`
}
// KVToMap 将 key-value 切片转换为 map
func KVToMap(kvs []KV) map[string]string {
m := make(map[string]string)
+1 -1
View File
@@ -10,7 +10,7 @@ type WebsiteSetting struct {
Root string `json:"root"`
Path string `json:"path"`
Index string `json:"index"`
PHP string `json:"php"`
PHP int `json:"php"`
OpenBasedir bool `json:"open_basedir"`
SSL bool `json:"ssl"`
SSLCertificate string `json:"ssl_certificate"`