Skip to content

Commit 162a0c5

Browse files
feat: Fix Issue with DNS Account Deletion After Certificate Update Ap… (#7303)
Refs #7300
1 parent 2bc07c9 commit 162a0c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

backend/app/service/website_ssl.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ func (w WebsiteSSLService) Update(update request.WebsiteSSLUpdate) error {
512512
return err
513513
}
514514
updateParams["dns_account_id"] = dnsAccount.ID
515+
} else {
516+
updateParams["dns_account_id"] = 0
515517
}
516518
return websiteSSLRepo.SaveByMap(websiteSSL, updateParams)
517519
}

backend/utils/geo/geo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func GetIPLocation(ip, lang string) (string, error) {
3333
return "", err
3434
}
3535
if lang == "en" {
36-
return geoLocation.Country.En + geoLocation.Province.En, nil
36+
return geoLocation.Country.En + " " + geoLocation.Province.En, nil
3737
}
38-
return geoLocation.Country.Zh + geoLocation.Province.Zh, nil
38+
return geoLocation.Country.Zh + " " + geoLocation.Province.Zh, nil
3939
}

0 commit comments

Comments
 (0)