Browse Source

fix req_person_on_vehicle

researchman 5 years ago
parent
commit
125318e52a
1 changed files with 4 additions and 3 deletions
  1. 4 3
      module_service/module_web.cpp

+ 4 - 3
module_service/module_web.cpp

@@ -34,13 +34,16 @@ void module_web::accept( int ID, std::string const& name,
     else if (JSON_CMD_VALUE_REQUEST_ALL_DATA == cmd)//web登录请求所有信息
     {
         module_web::instance()->response_login();
+    }else if(JSON_CMD_REQ_ALL_PERSON_ON_CAR == cmd)
+    {
+        //人上车数据
     }
     else
     {
         sio::message::ptr data_value;
         if(!tool_map::try_get_value(data_value, JSON_ROOT_KEY_DATA, data))
         {
-            log_error("web发来的数据data字段格式不对, 不是map");
+            log_error("web发来的 %s 数据data字段格式不对, 不是map",cmd.c_str());
             return;
         }
 
@@ -59,8 +62,6 @@ void module_web::accept( int ID, std::string const& name,
         else if(JSON_CMD_VALUE_CALL_CARD_CANCEL_REQUEST == cmd)//取消呼叫
         {
             module_call::instance()->accept_cancel(data_value);
-        }else if(JSON_CMD_REQ_ALL_PERSON_ON_CAR == cmd) // 所有在车上的人卡信息
-        {
         }
     }
 }