🐞 fix(mid): 中转接口proxy错误

This commit is contained in:
luying
2023-05-09 13:18:05 +08:00
parent ac1662c305
commit 633b729c32

View File

@@ -32,7 +32,7 @@ module.exports = () => {
let url = getProxyUrl(ctx.request.url);
if(url) {
let sid = getServerId(url, ctx);
if(!ctx.app.config.sidToHost) {
if(!ctx.app.config.sidToHost.has(sid)) {
await getNewHost(sid);
}
if(!!ctx.app.config.sidToHost.get(sid)) {