Commit ec2b356b by guanghui.cui

打印失败后,记录失败订单信息到日志

parent 2fe411ec
......@@ -604,7 +604,7 @@ bool WBillControl::sendToPrintServer(QByteArray &JsonPrint)
//外卖单打印
void WBillControl::printTakeout(const OrderObject *obj,const QString &posOrderId)
{
{
#ifdef Q_OS_LINUX
int fd=-1;
for(int i=0; i < obj->proList.size(); i++)
......@@ -730,7 +730,7 @@ void WBillControl::printTakeout(const OrderObject *obj,const QString &posOrderId
close_port();
}
else{
QLOG_ERROR() << "printTakeout failed";
QLOG_ERROR() <<"posOrderId:"<<posOrderId<< "printTakeout failed:"<<obj->toString();
}
#endif
}
......
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