[HTTPS]可以直接点击按钮申请免费证书

This commit is contained in:
刘祥超
2020-12-03 21:07:12 +08:00
parent c46de3ae04
commit 2f47e9527a
2 changed files with 47 additions and 18 deletions

View File

@@ -413,6 +413,21 @@ func (this *ServerDAO) InitServerWeb(serverId int64) (int64, error) {
return webId, nil
}
// 查找ServerNames配置
func (this *ServerDAO) FindServerNames(serverId int64) (serverNamesJSON []byte, err error) {
col, err := this.Query().
Pk(serverId).
Result("serverNames").
FindStringCol("")
if err != nil {
return nil, err
}
if len(col) == 0 || col == "null" {
return []byte("[]"), nil
}
return []byte(col), nil
}
// 修改ServerNames配置
func (this *ServerDAO) UpdateServerNames(serverId int64, config []byte) error {
if serverId <= 0 {