| | |
| | | img_str.append(fdfsClient.fastFds->getIp() + "/").append(img_tmp); |
| | | img_url.swap(img_str); |
| | | } |
| | | } else { |
| | | std::string img_str = "http://"; |
| | | if (fdfsClient.fastFds != nullptr) { |
| | | img_str.append(fdfsClient.fastFds->getIp() + "/").append(img_url); |
| | | img_url.swap(img_str); |
| | | } |
| | | } |
| | | |
| | | auto t_results = m_curlDownloadImg.download_jpeg(const_cast<char *>(img_url.c_str())); |
| | |
| | | std::string picDate = value["picDate"].asString(); |
| | | std::string imgKey = value["imgKey"].asString(); |
| | | //兼容旧版本 |
| | | if(imgKey=="undefined") |
| | | if(imgKey=="undefined" || imgKey.empty()) |
| | | { |
| | | return getAlarmImageByPicDateAndDevId(picDate,devId,response); |
| | | } |
| | |
| | | std::string path; |
| | | |
| | | //兼容旧版本 |
| | | if(imgKey=="undefined") |
| | | if(imgKey=="undefined"||imgKey.empty()) |
| | | { |
| | | qint64 sub; |
| | | path = getVideoPathByPicDate(picDate,devId,sub); |