修正重定向type取值转换导致bug改用String判断

This commit is contained in:
arlen 2017-09-12 10:06:42 +08:00
parent bd5bd86733
commit 4b7bae26a5
1 changed files with 2 additions and 2 deletions

View File

@ -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();