From a3be94f119cb04a7a2b2f322e66305c98022ee32 Mon Sep 17 00:00:00 2001 From: pansen <pansen626@sina.com> Date: 星期五, 15 三月 2019 10:23:31 +0800 Subject: [PATCH] Merge branch 'yw.1.2.fixbug' of ssh://192.168.1.226:29418/development/c++ into yw.1.2 --- QiaoJiaSystem/StructureApp/FaceExtractElement.cpp | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/QiaoJiaSystem/StructureApp/FaceExtractElement.cpp b/QiaoJiaSystem/StructureApp/FaceExtractElement.cpp index 679aaf6..d9883e9 100644 --- a/QiaoJiaSystem/StructureApp/FaceExtractElement.cpp +++ b/QiaoJiaSystem/StructureApp/FaceExtractElement.cpp @@ -123,6 +123,9 @@ strImgUrl = strImgUrlTmp; // strImgUrl.append("/").append(strImgUrlTmp); fdfsClient->rwLock.unlock(); + } else { + strImgUrl = ""; + ERR("fdfsClient is nullptr ???"); } //鎷兼帴json @@ -136,8 +139,11 @@ Json::Value t_json; t_json["Id"] = str_uuid; //涓婚敭 + std::string feature_base64; + feature_base64 = base64.Encode(feature.data(), feature.size()); + //#鍦ㄥ姣斾腑娣诲姞鐗瑰緛鍊� - t_json["FaceFeature"] = "base64"; + t_json["FaceFeature"] = feature_base64; t_json["personId"] = "";//鍏宠仈搴曞簱浜哄憳id,浜鸿劯id t_json["BaseName"] = "";//鍏宠仈搴曞簱琛ㄥ悕 //#end -- Gitblit v1.8.0