mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
f
This commit is contained in:
1 parent
741a9ac511
commit
9ac4e89966
5 files changed
+79
-72
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user