From ec7eb85fa303f6d2457f68eb10a958320b527838 Mon Sep 17 00:00:00 2001
From: congmu <congmu2024@163.com>
Date: 星期四, 31 十月 2024 15:59:35 +0800
Subject: [PATCH] 提交commit.h

---
 Client/姜可庚/code/2024kunlun_project_permisson/PmsClientSocket.cpp |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp"
index 264c552..bf4d8d6 100644
--- "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp"
+++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp"
@@ -2,7 +2,7 @@
 
 #include <QMessageBox>
 
-PmsClientSocket::PmsClientSocket(QObject * parent):QObject(parent)
+PmsClientSocket::PmsClientSocket(QWidget * parent):QWidget(parent)
 {
     client = new QTcpSocket(this);
 
@@ -70,8 +70,8 @@
               vector<PmsQueryResult> vecs;
 
               for(int i =0;i<100;i++){
-                  if(*(int *)&res->pmsList[i]){
-                      PmsRes structRes = res->pmsList[i];
+                  PmsRes structRes =res->pmsList[i];
+                  if(*(int *)&structRes){
                       PmsQueryResult res;
                       res.setName(string(structRes.name));
                       res.setUserNo(string(structRes.userNo));
@@ -100,10 +100,10 @@
         if(res->success){
             QString dlgTitle = "鏇存柊缁撴灉";
             QString strInfo = "鏉冮檺淇℃伅鏇存柊鎴愬姛";
-//            QMessageBox::information(this,dlgTitle,strInfo,
-//                                     QMessageBox::Ok, QMessageBox::NoButton);
+            QMessageBox::information(this,dlgTitle,strInfo,
+                                      QMessageBox::Ok, QMessageBox::NoButton);
         }else{
-//            QMessageBox::warning(this, "鏇存柊缁撴灉", "鏉冮檺淇℃伅鏇存柊澶辫触");
+            QMessageBox::warning(this, "鏇存柊缁撴灉", "鏉冮檺淇℃伅鏇存柊澶辫触");
         }
     }
 }

--
Gitblit v1.8.0