Commit 13eea5e2 by guanghui.cui

修改判断条件

parent a0d9c64d
...@@ -393,9 +393,12 @@ int main(int argc,char *argv[]) ...@@ -393,9 +393,12 @@ int main(int argc,char *argv[])
{ {
LOG(INFO) << "----------- PLUGIN ===>> POS ------------"; LOG(INFO) << "----------- PLUGIN ===>> POS ------------";
LOG(INFO) << pushPosData; LOG(INFO) << pushPosData;
if (!pushPosData.empty() && !order_send_to_pos(pushPosData, odsPushData, responseData)) { if (!pushPosData.empty()) {
jsonTool.getOdsResponseData(101, "send to pos failed or receive data illegal!", odsPushData, responseData); if (!order_send_to_pos(pushPosData, odsPushData, responseData)) {
jsonTool.getOdsResponseData(101, "send to pos failed or receive data illegal!", odsPushData, responseData);
}
} }
}else }else
{ {
jsonTool.getOdsResponseData(101, "convert data to [POS] format failed!", odsPushData, responseData); jsonTool.getOdsResponseData(101, "convert data to [POS] format failed!", odsPushData, responseData);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment