This commit is contained in:
parent
1b8c8a0047
commit
8156fc677c
|
@ -17,8 +17,8 @@ private:
|
||||||
public:
|
public:
|
||||||
uint Token; // 令牌
|
uint Token; // 令牌
|
||||||
ByteArray ID; // 设备标识
|
ByteArray ID; // 设备标识
|
||||||
ByteArray Name; //登陆名称
|
ByteArray Name; // 登录名称
|
||||||
ByteArray Key; //登录密码
|
ByteArray Key; // 登录密码
|
||||||
|
|
||||||
int Status; // 状态。0准备、1握手完成、2登录后
|
int Status; // 状态。0准备、1握手完成、2登录后
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ void TokenConfig::Show()
|
||||||
ep2.Show(true);
|
ep2.Show(true);
|
||||||
debug_printf("\t服务: %s \r\n", Server);
|
debug_printf("\t服务: %s \r\n", Server);
|
||||||
debug_printf("\t厂商: %s \r\n", Vendor);
|
debug_printf("\t厂商: %s \r\n", Vendor);
|
||||||
debug_printf("\t登陆: %s \r\n", Name);
|
debug_printf("\t登录: %s \r\n", Name);
|
||||||
debug_printf("\t密码: %s \r\n", Key);
|
debug_printf("\t密码: %s \r\n", Key);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -327,7 +327,7 @@ bool TokenController::OnReceive(Message& msg)
|
||||||
bool TokenController::Send(Message& msg)
|
bool TokenController::Send(Message& msg)
|
||||||
{
|
{
|
||||||
TS("TokenController::Send");
|
TS("TokenController::Send");
|
||||||
//未登陆,登陆注册,握手可通过
|
// 未登录,登录注册,握手可通过
|
||||||
//if(Token == 0&&!( msg.Code <= 0x2||msg.Code == 0x07)) return false;
|
//if(Token == 0&&!( msg.Code <= 0x2||msg.Code == 0x07)) return false;
|
||||||
|
|
||||||
if(msg.Reply)
|
if(msg.Reply)
|
||||||
|
|
Loading…
Reference in New Issue