diff --git a/backend/app/service/website.go b/backend/app/service/website.go index c80527c18..648914cb2 100644 --- a/backend/app/service/website.go +++ b/backend/app/service/website.go @@ -1343,6 +1343,14 @@ func (w WebsiteService) ChangePHPVersion(req request.WebsitePHPVersionReq) error if runtime.Resource == constant.ResourceLocal || oldRuntime.Resource == constant.ResourceLocal { return buserr.New("ErrPHPResource") } + client, err := docker.NewDockerClient() + if err != nil { + return err + } + defer client.Close() + if !checkImageExist(client, runtime.Image) { + return buserr.WithName("ErrImageNotExist", runtime.Name) + } appInstall, err := appInstallRepo.GetFirst(commonRepo.WithByID(website.AppInstallID)) if err != nil { return err diff --git a/frontend/src/views/website/website/config/php/config/index.vue b/frontend/src/views/website/website/config/php/config/index.vue index 190c7cca8..6e3c5a71d 100644 --- a/frontend/src/views/website/website/config/php/config/index.vue +++ b/frontend/src/views/website/website/config/php/config/index.vue @@ -2,7 +2,6 @@