|  | @@ -107,10 +107,11 @@ int rabbitClient::recvMsg()
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          disconnect_index = 0;
 | 
	
		
			
				|  |  |          cout<<"str="<<str<<endl;
 | 
	
		
			
				|  |  | +        cout<<"str.c_str() = "<<str.c_str()<<endl;
 | 
	
		
			
				|  |  |          printf("------------recvClient recvMsg-------------------\n");
 | 
	
		
			
				|  |  |          if(str!=""){
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//            QJsonParseError jsonError;
 | 
	
		
			
				|  |  | +            QJsonParseError jsonError;
 | 
	
		
			
				|  |  |  //            QByteArray array=QByteArray::fromStdString(str);
 | 
	
		
			
				|  |  |  //            qDebug()<<"array ="<<array;
 | 
	
		
			
				|  |  |  //            std::string str_ = array.toStdString();
 | 
	
	
		
			
				|  | @@ -122,8 +123,8 @@ int rabbitClient::recvMsg()
 | 
	
		
			
				|  |  |  //                array3.append(str[i]);
 | 
	
		
			
				|  |  |  //            }
 | 
	
		
			
				|  |  |  //            qDebug()<<"array3 = "<<array3;
 | 
	
		
			
				|  |  | -//            QJsonDocument doucment = QJsonDocument::fromJson(array3, &jsonError);  // 转化为 JSON 文档
 | 
	
		
			
				|  |  | -//            qDebug()<<"error!"<<jsonError.errorString();
 | 
	
		
			
				|  |  | +            QJsonDocument doucment = QJsonDocument::fromJson(str.c_str(), &jsonError);  // 转化为 JSON 文档
 | 
	
		
			
				|  |  | +            qDebug()<<"error!"<<jsonError.errorString();
 | 
	
		
			
				|  |  |              emit sendmsg_recvclientToRecvstate(str);//信号
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          QThread::sleep(1);
 |