fix bug in pst
This commit is contained in:
@@ -28,7 +28,7 @@ extern "C" {
|
||||
#include <map>
|
||||
#include <list>
|
||||
|
||||
|
||||
#include "../mms/db_interface.h"
|
||||
#include <QThread>
|
||||
|
||||
//lnk20250106
|
||||
@@ -53,6 +53,8 @@ extern void ledger(const char* terminal_id = NULL,QIODevice* outputDevice = NULL
|
||||
extern void value_print(const char *variableName, QTcpSocket *clientSocket);
|
||||
extern int TEST_PORT;
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//struct json_pair_info
|
||||
//{
|
||||
@@ -307,9 +309,9 @@ private slots:
|
||||
continue;
|
||||
}
|
||||
|
||||
// 1) <20><><EFBFBD><EFBFBD> 'q' <20>˳<EFBFBD> viewlog
|
||||
if (c == 'q') {
|
||||
std::cout << "Received 'q' from shell socket! Exiting viewlog...\n";
|
||||
// 1) <20><><EFBFBD><EFBFBD> '`' <20>˳<EFBFBD> viewlog
|
||||
if (c == '`') {
|
||||
std::cout << "Received '`' from shell socket! Exiting viewlog...\n";
|
||||
if (activeClient == clientSocket) {
|
||||
stopViewLog = true;
|
||||
clientSocket->write("\r\x1B[K");
|
||||
@@ -356,7 +358,7 @@ private slots:
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD>̶<EFBFBD>Ϊ "> "<22><><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ2
|
||||
const int promptLength = 2;
|
||||
const int promptLength = 1;
|
||||
|
||||
// 4) <20>˸<EFBFBD><CBB8><EFBFBD>
|
||||
if (c == '\x7f' || c == '\b') {
|
||||
@@ -421,6 +423,9 @@ private:
|
||||
helpText += "set - Execute rocketmq_test_set\r\n";
|
||||
helpText += "only - Execute rocketmq_test_only\r\n";
|
||||
helpText += "log - Execute rocketmq_test_log\r\n";
|
||||
helpText += "soe - Execute http_test_soe\r\n";
|
||||
helpText += "qvvr - Execute http_test_qvvr\r\n";
|
||||
helpText += "connect - Execute http_test_connect\r\n";
|
||||
helpText += "ledger <id> - Execute ledger with optional terminal_id\r\n";
|
||||
helpText += "viewlog <level> - View logs (ERROR, WARN, NORMAL, DEBUG)\r\n";
|
||||
helpText += "value <valuename> - Execute value print with valuename : frontindex remtable iedcount frontfun log init\r\n";
|
||||
@@ -475,6 +480,21 @@ private:
|
||||
clientSocket->write("\r\x1B[K");
|
||||
clientSocket->write("Executed rocketmq_test_log\r\n");
|
||||
}
|
||||
else if (cmd.startsWith("soe")) {
|
||||
SOEFileWeb_test();
|
||||
clientSocket->write("\r\x1B[K");
|
||||
clientSocket->write("Executed http_test_soe\r\n");
|
||||
}
|
||||
else if (cmd.startsWith("qvvr")) {
|
||||
qvvr_test();
|
||||
clientSocket->write("\r\x1B[K");
|
||||
clientSocket->write("Executed http_test_qvvr\r\n");
|
||||
}
|
||||
else if (cmd.startsWith("connect")) {
|
||||
comflag_test();
|
||||
clientSocket->write("\r\x1B[K");
|
||||
clientSocket->write("Executed http_test_connect\r\n");
|
||||
}
|
||||
else if (cmd.startsWith("ledger")) {
|
||||
QStringList parts = cmd.split(" ");
|
||||
if (parts.size() > 1) {
|
||||
|
||||
Reference in New Issue
Block a user