From 140cd564da33a85bb15338ab89675e9b5a34e4b5 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 5 Feb 2024 15:00:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=82=E9=85=8D=E5=A4=9A=E5=AE=B9?= =?UTF-8?q?=E5=99=A8=E5=BA=94=E7=94=A8=20(#3832)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/app.go b/backend/app/service/app.go index da911590c..61c7034c1 100644 --- a/backend/app/service/app.go +++ b/backend/app/service/app.go @@ -397,7 +397,7 @@ func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) ( } index++ } - if app.Limit == 0 && appInstall.Name != serviceName { + if app.Limit == 0 && appInstall.Name != serviceName && len(servicesMap) == 1 { servicesMap[appInstall.Name] = servicesMap[serviceName] delete(servicesMap, serviceName) serviceName = appInstall.Name