feat: Fix Issue with DNS Account Deletion After Certificate Update Ap… (#7303)

Refs https://github.com/1Panel-dev/1Panel/issues/7300
pull/7306/head
zhengkunwang 2024-12-10 11:15:38 +08:00 committed by GitHub
parent 2bc07c91df
commit 162a0c543c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -512,6 +512,8 @@ func (w WebsiteSSLService) Update(update request.WebsiteSSLUpdate) error {
return err
}
updateParams["dns_account_id"] = dnsAccount.ID
} else {
updateParams["dns_account_id"] = 0
}
return websiteSSLRepo.SaveByMap(websiteSSL, updateParams)
}

View File

@ -33,7 +33,7 @@ func GetIPLocation(ip, lang string) (string, error) {
return "", err
}
if lang == "en" {
return geoLocation.Country.En + geoLocation.Province.En, nil
return geoLocation.Country.En + " " + geoLocation.Province.En, nil
}
return geoLocation.Country.Zh + geoLocation.Province.Zh, nil
return geoLocation.Country.Zh + " " + geoLocation.Province.Zh, nil
}