This commit is contained in:
aozhiwei 2020-08-25 17:19:48 +08:00
parent 03a8c08040
commit fd9a2ba7eb

View File

@ -311,8 +311,8 @@ int GSMgr::GetTargetChannel(const ss::SS_WSP_RequestTargetServer& msg)
if (channel == 6000 && !msg.url().empty()) { if (channel == 6000 && !msg.url().empty()) {
std::vector<std::string> strings; std::vector<std::string> strings;
a8::Split(msg.url(), strings, '/'); a8::Split(msg.url(), strings, '/');
if (!strings.empty()) { if (strings.size() > 1) {
channel = a8::XValue(strings[0]); channel = a8::XValue(strings[1]);
} }
} }
if (!App::Instance()->IsSeparateChannel(channel)) { if (!App::Instance()->IsSeparateChannel(channel)) {