修正重定向type取值转换导致bug改用String判断
This commit is contained in:
parent
bd5bd86733
commit
4b7bae26a5
|
@ -202,10 +202,10 @@ void LinkClient::OnReceive(LinkMessage& msg)
|
|||
{
|
||||
auto rs = js["result"];
|
||||
//重定向类型 0:临时 1:永久
|
||||
auto type = rs["type"].AsInt();
|
||||
auto type = rs["type"].AsString();
|
||||
auto server = rs["url"].AsString();
|
||||
//修改默认连接
|
||||
if (type == 1)
|
||||
if (type == "1")
|
||||
{
|
||||
Cfg->Server() = server;
|
||||
Cfg->Show();
|
||||
|
|
Loading…
Reference in New Issue