diff --git a/app-builder/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/controller/AppBuilderAppController.java b/app-builder/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/controller/AppBuilderAppController.java index 301a68774..32b4f3a7c 100644 --- a/app-builder/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/controller/AppBuilderAppController.java +++ b/app-builder/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/controller/AppBuilderAppController.java @@ -471,8 +471,10 @@ public Rsp> checkAvailable(HttpClassicServerRequest httpReques public Rsp importApp(HttpClassicServerRequest httpRequest, @PathVariable("tenant_id") String tenantId, PartitionedEntity appConfig) { this.fitRuntime.publisherOfEvents().publishEvent(new AppCreatingEvent(this)); - if (this.appService.getAppCount(tenantId, this.buildAppQueryCondition(new AppQueryCondition(), DEFAULT_TYPES)) - >= this.maxAppNum) { + OperationContext context = this.contextOf(httpRequest, tenantId); + if (this.appService.getAppCount(tenantId, + this.buildAppQueryCondition(AppQueryCondition.builder().createBy(context.getOperator()).build(), + DEFAULT_TYPES)) >= this.maxAppNum) { throw new AippException(AippErrCode.TOO_MANY_APPS); } if (appConfig.entities().isEmpty() || !appConfig.entities().get(0).isFile()) { @@ -484,8 +486,7 @@ public Rsp importApp(HttpClassicServerRequest httpRequest, } String configString = new String(AppImExportUtil.readAllBytes(appConfigFileEntity.getInputStream()), StandardCharsets.UTF_8); - return Rsp.ok(this.appDomainService.importApp(configString, - this.contextOf(httpRequest, tenantId))); + return Rsp.ok(this.appDomainService.importApp(configString, context)); } catch (IOException e) { log.error("Failed to read uploaded application config file", e); throw new AippException(AippErrCode.UPLOAD_FAILED); diff --git a/frontend/src/pages/welcome/index.less b/frontend/src/pages/welcome/index.less index f88e92976..1960457d0 100644 --- a/frontend/src/pages/welcome/index.less +++ b/frontend/src/pages/welcome/index.less @@ -2613,6 +2613,16 @@ gap: 16px; } + .footer-icp { + color: inherit; + text-decoration: none; + transition: color 0.2s; + + &:hover { + color: #3b82f6; + } + } + .footer-legal { display: flex; gap: 24px; diff --git a/frontend/src/pages/welcome/index.tsx b/frontend/src/pages/welcome/index.tsx index 8ce90b83a..b760c7825 100644 --- a/frontend/src/pages/welcome/index.tsx +++ b/frontend/src/pages/welcome/index.tsx @@ -747,7 +747,12 @@ const Footer: React.FC = () => ( -
© 2025 ModelEngine Group · MIT Licensed
+
+ © 2025 ModelEngine Group · MIT Licensed ·{' '} + + 蜀ICP备2025169945号-1 + +
);