Invoke指令居然没添加操作码

This commit is contained in:
cdyong 2016-08-12 06:03:37 +00:00
parent 54ea3284de
commit 4beac6e6e4
1 changed files with 21 additions and 12 deletions

View File

@ -353,6 +353,10 @@ void TokenClient::LoopTask()
Master->Close();
// Sys.Reset();
}
auto now = Sys.Ms();
auto arr = Buffer(&now, 8);
Invoke("Proxy/Upload", arr);
}
void BroadcastHelloTask(void* param)
@ -898,6 +902,8 @@ void TokenClient::OnWrite(const TokenMessage& msg, TokenController* ctrl)
void TokenClient::Invoke(const String& action, const Buffer& bs)
{
TokenMessage msg;
msg.Code = 0x08;
auto ms = msg.ToStream();
BinaryPair bp(ms);
@ -1003,6 +1009,7 @@ bool TokenClient::InvokeRestStart(void * param, const BinaryPair& args, Stream&
return true;
}
bool TokenClient::InvokeRestBoot(void * param, const BinaryPair& args, Stream& result)
{
BinaryPair res(result);
@ -1016,6 +1023,7 @@ bool TokenClient::InvokeRestBoot(void * param, const BinaryPair& args, Stream& r
return true;
}
bool TokenClient::InvokeWrite(void * param, const BinaryPair& args, Stream& result)
{
ByteArray data;
@ -1053,6 +1061,7 @@ bool TokenClient::InvokeRead(void * param, const BinaryPair& args, Stream& resul
return true;
}
bool TokenClient::InvokeConfigGet(void * param, const BinaryPair& args, Stream& result)
{
result.Write(true);