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 @@
-
diff --git a/frontend/src/views/website/website/config/php/function/index.vue b/frontend/src/views/website/website/config/php/function/index.vue index 62eba6e8f..caa14039b 100644 --- a/frontend/src/views/website/website/config/php/function/index.vue +++ b/frontend/src/views/website/website/config/php/function/index.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/views/website/website/config/php/upload/index.vue b/frontend/src/views/website/website/config/php/upload/index.vue index 69ebcee3b..d2264e6f9 100644 --- a/frontend/src/views/website/website/config/php/upload/index.vue +++ b/frontend/src/views/website/website/config/php/upload/index.vue @@ -1,7 +1,7 @@