Browse Source

fix some bug

master
zhaohe 2 years ago
parent
commit
58414e9f1c
  1. 3
      src/main_control_service.cpp
  2. 1
      src/service/device_io_control_service_test.cpp

3
src/main_control_service.cpp

@ -224,9 +224,10 @@ void MainControlService::processFrontEndMessage_userOperate(weak_ptr<WebSocket>
* unlogin * * unlogin *
*******************************************************************************/ *******************************************************************************/
if (cmdstr == "unlogin") { if (cmdstr == "unlogin") {
string loginuid = m_deviceStateService->getLoginUid();
m_deviceStateService->unlogin(); m_deviceStateService->unlogin();
logger->info("user unlogin success"); logger->info("user unlogin success");
m_dbService->addUserBehaviorRecord(m_deviceStateService->getLoginUid(), kbehavior_logout, "");
m_dbService->addUserBehaviorRecord(loginuid, kbehavior_logout, "");
return; return;
} }

1
src/service/device_io_control_service_test.cpp

@ -162,6 +162,7 @@ void DeviceIoControlServiceTest::sprayLiquidPump_close() {
void DeviceIoControlServiceTest::sprayLiquidPump_open_for_test(int gpm) { void DeviceIoControlServiceTest::sprayLiquidPump_open_for_test(int gpm) {
logger->info("sprayLiquidPump_open_for_test {}", gpm); logger->info("sprayLiquidPump_open_for_test {}", gpm);
sprayLiquidPump_state = true; sprayLiquidPump_state = true;
sprayLiquidPump_gpm = gpm;
} }
void DeviceIoControlServiceTest::sprayLiquidPump_close_for_test() { void DeviceIoControlServiceTest::sprayLiquidPump_close_for_test() {
logger->info("sprayLiquidPump_close"); logger->info("sprayLiquidPump_close");

Loading…
Cancel
Save