|
|
@@ -11,6 +11,7 @@ import java.util.Base64;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import me.zhengjie.dao.mybatis.entity.FaceCompareEntity;
|
|
|
import org.apache.commons.httpclient.HttpClient;
|
|
|
import org.apache.commons.httpclient.HttpException;
|
|
|
@@ -22,6 +23,7 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
|
+@Slf4j
|
|
|
public class JuheServiceUtil {
|
|
|
private static final Logger logger = LoggerFactory.getLogger(JuheServiceUtil.class);
|
|
|
|
|
|
@@ -86,6 +88,7 @@ public class JuheServiceUtil {
|
|
|
String reason = jsonObj.getString("reason");
|
|
|
JSONObject result = jsonObj.getJSONObject("result");
|
|
|
if (! "成功".equals(reason)){
|
|
|
+ log.info("错误信息"+result.getString("message"));
|
|
|
thirdPartyInterfaceEntity.setMessage("人脸比对次数不足");
|
|
|
thirdPartyInterfaceEntity.setResult(0);
|
|
|
return thirdPartyInterfaceEntity;
|