QiaoJiaSystem/StructureApp/HiredisTool.cpp
@@ -89,15 +89,19 @@ CvUtil::cvMat2Buffer(img,buf); // json["time"]=info.time; json["img"]=std::string(buf.begin(),buf.end()); // buf.clear(); std::string strBuf=std::string(buf.begin(),buf.end()); if(!listLpush(file_name,json.toStyledString())); if(!checkParam()) { return false; } redisReply *reply; reply = (redisReply*)redisCommand(m_redis,"lpush %s %s", file_name.c_str(),json.toStyledString().c_str()); if(!checkResult(reply)) { return false; } //DBG(json.toStyledString()); freeReplyObject(reply); return true; }