mirror of
https://github.com/tnb-labs/panel.git
synced 2026-09-24 23:20:50 +08:00
fix: website save
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user