Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,10 @@ public Rsp<List<CheckResult>> checkAvailable(HttpClassicServerRequest httpReques
public Rsp<AppBuilderAppDto> 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()) {
Expand All @@ -484,8 +486,7 @@ public Rsp<AppBuilderAppDto> 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);
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/pages/welcome/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/pages/welcome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,12 @@ const Footer: React.FC = () => (
</div>
</div>
</div>
<div className="footer-bottom">&copy; 2025 ModelEngine Group · MIT Licensed</div>
<div className="footer-bottom">
&copy; 2025 ModelEngine Group · MIT Licensed ·{' '}
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noreferrer" className="footer-icp">
蜀ICP备2025169945号-1
</a>
</div>
</footer>
);

Expand Down