|
@@ -11,6 +11,7 @@
|
|
|
#include "core/sip_config.h"
|
|
|
#include "manager/LanguageManager.h"
|
|
|
#include "core/utilities.h"
|
|
|
+#include <string>
|
|
|
|
|
|
#include "base/strings.hpp"
|
|
|
#include "base/http_client.h"
|
|
@@ -67,6 +68,7 @@ Json::Value painterInfoList;
|
|
|
static bool reinforce = false; // 判断设备是否处于增援状态
|
|
|
static bool serverInfo = true; // 判断是否需要从服务器获取服务器信息,第一次要,后续不要
|
|
|
static bool isHelpTimerRegistered = false;
|
|
|
+static std::string cencalByDoorTid = "";
|
|
|
|
|
|
|
|
|
|
|
@@ -451,6 +453,9 @@ void cancelAutoBtnHelpTimer(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+std::string getCencalByDoorTid() {
|
|
|
+ return cencalByDoorTid;
|
|
|
+}
|
|
|
|
|
|
int getNowTime() {
|
|
|
struct tm *t = TimeHelper::getDateTime();
|
|
@@ -914,6 +919,8 @@ static bool onButtonClick_CallCencelButton(ZKButton *pButton) {
|
|
|
std::string req = getTcpModelString(tcpModel);
|
|
|
LOGD("TCP VOICE : %s",req.c_str());
|
|
|
|
|
|
+ cencalByDoorTid = tcpModel.tid;
|
|
|
+
|
|
|
//回调注册
|
|
|
TcpCallback callback;
|
|
|
callback.tid = tcpModel.tid;
|
|
@@ -987,12 +994,13 @@ static bool onButtonClick_FunctionButton(ZKButton *pButton) {
|
|
|
LOGD(" ButtonClick FunctionButton !!!\n");
|
|
|
mFunctionWinPtr->hideWnd();
|
|
|
|
|
|
+ StoragePreferences::putBool(STORE_NURSING_TYPE, false);
|
|
|
+
|
|
|
std::string heartStr = "DOORLED,000F";
|
|
|
const char* sendMsg = heartStr.c_str();
|
|
|
sendProtocolTo(UART_TTYS2, (byte*)(sendMsg), strlen(sendMsg));
|
|
|
|
|
|
if (nursingTcpModel.json.size() != 0) { // 对比一下,json里面不为空的时候
|
|
|
- StoragePreferences::putBool(STORE_NURSING_TYPE, false);
|
|
|
|
|
|
// 发送tcp, tcp_type = SIDE, tcp_action = NURSING_END
|
|
|
TcpModel tcpModel;
|