zhangyang пре 6 година
родитељ
комит
771a6a55ce

BIN
bin/Win32/Debug/zhipuzi_pos_windows/db/pos.db


BIN
bin/Win32/Debug/zhipuzi_pos_windows/zhipuzi_pos_windows.exe


+ 378 - 0
bin/Win32/Debug/zhipuzi_pos_windows_server/log/pathplanning_server.log

@@ -28657,3 +28657,381 @@ Stack Trace:
 2019-05-15 01:02:04[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
 2019-05-15 01:02:04[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
 2019-05-15 01:02:11[INFO] - Exception: bad allocation [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\lewaimai_pathplanning_windows.cpp:22]
+2019-05-15 01:48:14[INFO] - Opened database successfully [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:69]
+2019-05-15 01:48:14[INFO] - cpu num:8 [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:296]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:48:46[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:49:15[INFO] - Opened database successfully [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:69]
+2019-05-15 01:49:15[INFO] - cpu num:8 [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:296]
+2019-05-15 01:51:01[INFO] - Opened database successfully [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:69]
+2019-05-15 01:51:01[INFO] - cpu num:8 [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:296]
+2019-05-15 01:51:39[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:51:39[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:51:40[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:51:40[DEBUG] - Request Failed: src\mns_network_tool.cpp(112): MNSExceptionBase: Curl Send Request Fail, errorcode:28 errno:0 errorStr:Timeout was reached
+Stack Trace:
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ - 0
+ [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:89]
+2019-05-15 01:52:09[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:10[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 01:52:11[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:04:20[INFO] - Opened database successfully [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:69]
+2019-05-15 02:04:20[INFO] - cpu num:8 [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:296]
+2019-05-15 02:06:51[INFO] - Opened database successfully [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:69]
+2019-05-15 02:06:51[INFO] - cpu num:8 [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\network\cserver.cpp:296]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:07:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:51[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:08:52[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:21[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]
+2019-05-15 02:09:22[DEBUG] - Request Failed: MessageNotExist [d:\work\zhipuzi_pos_windows\lewaimai_pathplanning\helper\caliyunmns.cpp:83]

BIN
bin/Win32/Debug/zhipuzi_pos_windows_server/zhipuzi_pos_windows_server.exe


+ 1 - 0
lewaimai_dispatch/lewaimai_dispatch_windows.vcxproj

@@ -196,6 +196,7 @@ copy $(ProjectDir)conf\ $(SolutionDir)bin\$(Platform)\$(Configuration)\conf\</Co
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>
+    <ClInclude Include="network\PosMessage.h" />
     <ClInclude Include="wnd\CChufangSettingWnd.h" />
     <ClInclude Include="control\CWaimaiOrderInfoUI.h" />
     <ClInclude Include="control\CSettingUI.h" />

+ 3 - 0
lewaimai_dispatch/lewaimai_dispatch_windows.vcxproj.filters

@@ -87,6 +87,9 @@
     <ClInclude Include="wnd\CChufangSettingWnd.h">
       <Filter>头文件</Filter>
     </ClInclude>
+    <ClInclude Include="network\PosMessage.h">
+      <Filter>头文件</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="pch\pch.cpp">

+ 18 - 5
lewaimai_dispatch/network/CMessagePush.cpp

@@ -6,6 +6,8 @@
 
 #include "mmsystem.h"
 
+#include "PosMessage.h"
+
 CMessagePush::~CMessagePush()
 {
 
@@ -103,9 +105,14 @@ void CMessagePush::KeepAlive()
 		//返回给接入层的消息
 		std::string m_keepalive_msg = buffer.GetString();
 
+		PosMessage new_msg;
+		new_msg.m_length = m_keepalive_msg.length();
+		memcpy(new_msg.data, m_keepalive_msg.c_str(), m_keepalive_msg.length());
+		new_msg.data[new_msg.m_length] = '\0';
+
 		try
 		{
-			socket_.write_some(boost::asio::buffer(m_keepalive_msg.c_str(), m_keepalive_msg.length()));
+			socket_.write_some(boost::asio::buffer(&new_msg, sizeof(PosMessage)));
 		}
 		catch (const std::exception& e)
 		{
@@ -145,7 +152,12 @@ void CMessagePush::KeepAlive()
 				//返回给接入层的消息
 				std::string m_login_message = buffer_1.GetString();
 
-				socket_.write_some(boost::asio::buffer(m_login_message.c_str(), m_login_message.length()));
+				PosMessage login_msg;
+				login_msg.m_length = m_login_message.length();
+				memcpy(login_msg.data, m_login_message.c_str(), m_login_message.length());
+				login_msg.data[login_msg.m_length] = '\0';
+
+				socket_.write_some(boost::asio::buffer(boost::asio::buffer(&login_msg, sizeof(PosMessage))));
 			}
 			catch (const std::exception& e)
 			{
@@ -178,10 +190,11 @@ void CMessagePush::ReceiveMessage()
 	{
 		try
 		{
-			memset(data_, 0, max_length);
-			socket_.read_some(boost::asio::buffer(data_, max_length));
+			PosMessage new_msg;
+			
+			boost::asio::read(socket_, boost::asio::buffer(&new_msg, sizeof(PosMessage)));
 
-			std::string msg = data_;
+			std::string msg = new_msg.data;
 
 			//收到服务器的消息,对服务器的消息进行处理
 			rapidjson::Document document;

+ 10 - 0
lewaimai_dispatch/network/PosMessage.h

@@ -0,0 +1,10 @@
+#pragma once
+
+class PosMessage
+{
+public:
+	enum { max_length = 1024 };
+	char data[max_length];
+
+	std::size_t m_length;
+};

+ 1 - 0
lewaimai_pathplanning/lewaimai_pathplanning_windows.vcxproj

@@ -202,6 +202,7 @@ copy $(ProjectDir)conf\ $(SolutionDir)bin\$(Platform)\$(Configuration)\conf\</Co
     <ClInclude Include="helper\CConfigReader.h" />
     <ClInclude Include="helper\CLewaimaiString.h" />
     <ClInclude Include="helper\define.h" />
+    <ClInclude Include="network\PosMessage.h" />
     <ClInclude Include="tool\CLewaimaiLog.h" />
     <ClInclude Include="pch\pch.h" />
     <ClInclude Include="tool\CLewaimaiTime.h" />

+ 3 - 0
lewaimai_pathplanning/lewaimai_pathplanning_windows.vcxproj.filters

@@ -48,6 +48,9 @@
     <ClInclude Include="helper\CAliyunMNS.h">
       <Filter>头文件</Filter>
     </ClInclude>
+    <ClInclude Include="network\PosMessage.h">
+      <Filter>头文件</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="lewaimai_pathplanning_windows.cpp">

+ 14 - 9
lewaimai_pathplanning/network/CClientSession.cpp

@@ -3,16 +3,18 @@
 #include "CServer.h"
 #include <sqlite3/sqlite3.h>
 
+#include "PosMessage.h"
+
 CClientSession::~CClientSession()
 {
 }
 
 void CClientSession::start()
 {
-    socket_.async_read_some(boost::asio::buffer(data_, max_length),
-                            boost::bind(&CClientSession::handle_read, this,
-                                        boost::asio::placeholders::error,
-                                        boost::asio::placeholders::bytes_transferred));
+	boost::asio::async_read(socket_, boost::asio::buffer(&m_pos_message, sizeof(PosMessage)),
+		boost::bind(&CClientSession::handle_read, this,
+			boost::asio::placeholders::error,
+			boost::asio::placeholders::bytes_transferred));
 }
 
 void CClientSession::stop()
@@ -26,7 +28,12 @@ void CClientSession::send_message(std::string msg)
 {
 	try
 	{
-		socket_.write_some(boost::asio::buffer(msg.c_str(), msg.length() + 1));
+		PosMessage new_msg;
+		new_msg.m_length = msg.length();
+		memcpy(new_msg.data, msg.c_str(), msg.length());
+		new_msg.data[new_msg.m_length] = '\0';
+
+		socket_.write_some(boost::asio::buffer(&new_msg, sizeof(PosMessage)));
 	}
 	catch (const std::exception& e)
 	{
@@ -62,7 +69,7 @@ void CClientSession::handle_read(const boost::system::error_code& error,
     if(!error)
     {
         //读到客户端发过来的内容,进行绑定
-        std::string msg = data_;
+        std::string msg = m_pos_message.data;
 
         rapidjson::Document document;
         document.Parse(msg.c_str());
@@ -89,9 +96,7 @@ void CClientSession::handle_read(const boost::system::error_code& error,
 		}
 
         //处理完了,重新读取
-        memset(data_, 0, max_length);
-
-        socket_.async_read_some(boost::asio::buffer(data_, max_length),
+        socket_.async_read_some(boost::asio::buffer(&m_pos_message, sizeof(PosMessage)),
                                 boost::bind(&CClientSession::handle_read, this,
                                             boost::asio::placeholders::error,
                                             boost::asio::placeholders::bytes_transferred));

+ 3 - 2
lewaimai_pathplanning/network/CClientSession.h

@@ -1,6 +1,7 @@
 #pragma once
 
 #include "../pch/pch.h"
+#include "PosMessage.h"
 
 using boost::asio::ip::tcp;
 
@@ -44,8 +45,8 @@ private:
 		size_t bytes_transferred);
 
     tcp::socket socket_;
-    enum { max_length = 1024 };
-    char data_[max_length];
+    
+	PosMessage m_pos_message;
 
 	CServer* m_server;
 

+ 10 - 0
lewaimai_pathplanning/network/PosMessage.h

@@ -0,0 +1,10 @@
+#pragma once
+
+class PosMessage
+{
+public:
+	enum { max_length = 1024 };
+	char data[max_length];
+
+	std::size_t m_length;
+};