diff --git a/backend/app/service/website_ssl.go b/backend/app/service/website_ssl.go index 91eb47167..878f25724 100644 --- a/backend/app/service/website_ssl.go +++ b/backend/app/service/website_ssl.go @@ -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) } diff --git a/backend/utils/geo/geo.go b/backend/utils/geo/geo.go index 977347cec..5e15937e0 100644 --- a/backend/utils/geo/geo.go +++ b/backend/utils/geo/geo.go @@ -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 }