Commit e0532a6c by NitefullWind

1. 修复会员面板的积分显示问题。 2. 修改返回给POS和打印log的字符串编码。

parent f078b9c0
......@@ -36,8 +36,10 @@ BOOL FMVipDispatcher::Transfer(LPSTR data, LPSTR &rsp, UINT &rsp_len)
condition.wait(&mutex);
mutex.unlock();
rsp = rspData.data();
rsp_len = rspData.length();
QString strData(rspData);
QByteArray bData = strData.toLocal8Bit();
rsp = bData.data();
rsp_len = bData.length();
emit stopSocketTimer();
}
......
......@@ -93,5 +93,5 @@ void customMessageHandler(QtMsgType type,const QMessageLogContext& Context, cons
debugInfo = QString("Fatal: %1").arg(msg);
abort();
}
FMLOG("%s",debugInfo.toStdString().c_str());
FMLOG("%s",debugInfo.toLocal8Bit().data());
}
......@@ -28,6 +28,7 @@ void FMVipPanel::initWnd(Session *session)
ui->balance_label->setText(DOUBLE_STR(session->data(PosProps.Amount).toInt() / 100.0));
ui->name_label->setText(session->data(PosProps.Name).toString());
ui->bir_label->setText(session->data(PosProps.Birthday).toString());
ui->point_label->setText(QString::number(session->data(PosProps.Score).toInt()));
ui->fund_btn->setFocus();
}
......
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