mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 06:32:04 +08:00
修复检查证书文件是否存在失败的bug
This commit is contained in:
@@ -69,8 +69,7 @@ func CreatCert(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
defer r.Body.Close()
|
||||
config := &dbdata.SettingLetsEncrypt{}
|
||||
err = json.Unmarshal(body, config)
|
||||
if err != nil {
|
||||
if err := json.Unmarshal(body, config); err != nil {
|
||||
RespError(w, RespInternalErr, err)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user