|
@ -10,9 +10,12 @@ using namespace iflytop; |
|
|
using namespace core; |
|
|
using namespace core; |
|
|
using namespace std; |
|
|
using namespace std; |
|
|
using namespace nlohmann; |
|
|
using namespace nlohmann; |
|
|
|
|
|
|
|
|
#define BIND
|
|
|
#define BIND
|
|
|
|
|
|
|
|
|
|
|
|
namespace iflytop { |
|
|
|
|
|
extern bool g_in_test; |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
static void getJsonValFromJson(json j, int& val) { |
|
|
static void getJsonValFromJson(json j, int& val) { |
|
|
if (j.is_string()) { |
|
|
if (j.is_string()) { |
|
|
string valstr = j; |
|
|
string valstr = j; |
|
@ -62,11 +65,13 @@ void MainControlService::initialize() { |
|
|
GET_SERVICE(DisinfectionLogsManager)->initialize(); |
|
|
GET_SERVICE(DisinfectionLogsManager)->initialize(); |
|
|
GET_TO_SERVICE(m_disinfectionLogsManager); |
|
|
GET_TO_SERVICE(m_disinfectionLogsManager); |
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
|
BUILD_AND_REG_SERRVICE(DeviceIoControlService); |
|
|
|
|
|
#else
|
|
|
|
|
|
REG_SERRVICE(DeviceIoControlService, new DeviceIoControlServiceTest()); |
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
if (!g_in_test) { |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(DeviceIoControlService); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
REG_SERRVICE(DeviceIoControlService, new DeviceIoControlServiceTest()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
GET_SERVICE(DeviceIoControlService)->initialize(); |
|
|
GET_SERVICE(DeviceIoControlService)->initialize(); |
|
|
GET_TO_SERVICE(m_deviceIoControlService); |
|
|
GET_TO_SERVICE(m_deviceIoControlService); |
|
|
|
|
|
|
|
|