瀏覽代碼

修复取车时,节点状态异常没有给终端反馈的bug

zx 4 年之前
父節點
當前提交
a2b14a2ce5
共有 3 個文件被更改,包括 9 次插入1 次删除
  1. 3 0
      CMakeLists.txt
  2. 4 0
      cmake-build-release/setting/system_setting.prototxt
  3. 2 1
      system/StoreProcessTask.cpp

+ 3 - 0
CMakeLists.txt

@@ -85,3 +85,6 @@ target_link_libraries(terminal
         /usr/local/lib/libglog.a
         /usr/local/lib/libgflags.a
         )
+        
+add_executable(test_uuid ./test/uuid_test.cpp ./system/uniq_key.cpp)
+

+ 4 - 0
cmake-build-release/setting/system_setting.prototxt

@@ -0,0 +1,4 @@
+bind_ip:"192.168.2.183"
+bind_port:30000
+entrance_num:6
+export_num:6

+ 2 - 1
system/StoreProcessTask.cpp

@@ -241,7 +241,8 @@ Error_manager StoreProcessTask::alloc_space_step()
     {
         Error_code  t_code=(Error_code)m_parcspace_alloc_response_msg.error_manager().error_code();
         Error_level t_level=(Error_level)m_parcspace_alloc_response_msg.error_manager().error_level();
-        return Error_manager(t_code,t_level,"分配车位反馈结果错误");
+        std::string description=m_parcspace_alloc_response_msg.error_manager().error_description();
+        return Error_manager(t_code,t_level,description);
     }
 }