he2802 4 gadi atpakaļ
vecāks
revīzija
5651b8d9fb

+ 0 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/alioss/service/impl/OssServiceImpl.java

@@ -5,7 +5,6 @@ import cn.hutool.json.JSONUtil;
 
 import com.aliyun.oss.OSS;
 import com.aliyun.oss.OSSClient;
-import com.aliyun.oss.OSSClientBuilder;
 import com.aliyun.oss.common.utils.BinaryUtil;
 import com.aliyun.oss.internal.OSSUtils;
 import com.aliyun.oss.model.MatchMode;
@@ -204,7 +203,6 @@ public class OssServiceImpl implements OssService {
         } catch (IOException e) {
             e.printStackTrace();
         }
-
         return null;
     }
 

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/face/service/impl/FaceServiceImpl.java

@@ -2,6 +2,7 @@ package com.zhongzheng.modules.face.service.impl;
 
 
 import cn.hutool.core.bean.BeanUtil;
+import com.alibaba.fastjson.JSONObject;
 import com.tencentcloudapi.common.Credential;
 import com.tencentcloudapi.common.exception.TencentCloudSDKException;
 import com.tencentcloudapi.common.profile.ClientProfile;
@@ -72,6 +73,7 @@ public class FaceServiceImpl implements IFaceService {
             req.setBizToken(bizToken);
             req.setRuleId("0");
             GetDetectInfoResponse resp = client.GetDetectInfo(req);
+            JSONObject resultObject = JSONObject.parseObject(GetDetectInfoResponse.toJsonString(resp));
             System.out.println(GetDetectInfoResponse.toJsonString(resp));
         } catch (TencentCloudSDKException e) {
             System.out.println(e.toString());