mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
feat: Fix Issue with DNS Account Deletion After Certificate Update Ap… (#7303)
Refs https://github.com/1Panel-dev/1Panel/issues/7300
This commit is contained in:
parent
2bc07c91df
commit
162a0c543c
@ -512,6 +512,8 @@ func (w WebsiteSSLService) Update(update request.WebsiteSSLUpdate) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
updateParams["dns_account_id"] = dnsAccount.ID
|
updateParams["dns_account_id"] = dnsAccount.ID
|
||||||
|
} else {
|
||||||
|
updateParams["dns_account_id"] = 0
|
||||||
}
|
}
|
||||||
return websiteSSLRepo.SaveByMap(websiteSSL, updateParams)
|
return websiteSSLRepo.SaveByMap(websiteSSL, updateParams)
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ func GetIPLocation(ip, lang string) (string, error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if lang == "en" {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user