fix: fix issue with update website config (#8611)

This commit is contained in:
CityFun 2025-05-12 18:41:59 +08:00 committed by GitHub
parent cd395b31bd
commit 27d7844004
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -528,7 +528,9 @@ func (w WebsiteService) UpdateWebsite(req request.WebsiteUpdate) error {
}
}
website.PrimaryDomain = req.PrimaryDomain
website.WebsiteGroupID = req.WebsiteGroupID
if req.WebsiteGroupID != 0 {
website.WebsiteGroupID = req.WebsiteGroupID
}
website.Remark = req.Remark
website.IPV6 = req.IPV6
website.Favorite = req.Favorite