优化代码

This commit is contained in:
wsczx
2022-10-18 12:06:18 +08:00
parent e66a842e77
commit ea7a487c26
2 changed files with 9 additions and 9 deletions

View File

@@ -21,11 +21,13 @@ func LinkHome(w http.ResponseWriter, r *http.Request) {
return
}
index := &dbdata.SettingOther{}
dbdata.SettingGet(index)
if err := dbdata.SettingGet(index); err != nil {
return
}
w.WriteHeader(http.StatusOK)
if index.Homeindex == "" {
index.Homeindex = "AnyLink 是一个企业级远程办公 SSL VPN 软件,可以支持多人同时在线使用。"
}
}
fmt.Fprintln(w, index.Homeindex)
}