This commit is contained in:
masnn committed 2020-06-10 13:40:28 +08:00
1 parent 741a9ac511
commit 9ac4e89966
5 files changed
+79 -72

No files matched your search

+2 -1
View File
@@ -306,7 +306,8 @@ function Route(route, RouteHandler, permission = null) {
domainId: 'system', ...ctx.params, ...ctx.query, ...ctx.request.body,
};
if (h.request.host !== await system.get('server.host')) {
args.domainId = h.request.url.split('//')[1].split(`.${await system.get('server.host')}`)[0] || '';
args.domainId = (h.request.url.split('//')[1] || '')
.split(`.${await system.get('server.host')}`)[0] || 'system';
}
if (h.___prepare) await h.___prepare(args);