|
@@ -18,6 +18,7 @@ import me.zhengjie.base.util.TencentServiceUtil;
|
|
|
import me.zhengjie.dao.mybatis.entity.FileInfoEntity;
|
|
import me.zhengjie.dao.mybatis.entity.FileInfoEntity;
|
|
|
import me.zhengjie.dao.mybatis.entity.FaceCompareEntity;
|
|
import me.zhengjie.dao.mybatis.entity.FaceCompareEntity;
|
|
|
import me.zhengjie.domain.notary.impl.NotaryDomainImpl;
|
|
import me.zhengjie.domain.notary.impl.NotaryDomainImpl;
|
|
|
|
|
+import me.zhengjie.utils.StringUtils;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -253,6 +254,10 @@ public class AdminOrderController {
|
|
|
//@RequestMapping("/face-compare")
|
|
//@RequestMapping("/face-compare")
|
|
|
@AnonymousPostMapping("/face-compare")
|
|
@AnonymousPostMapping("/face-compare")
|
|
|
public AppBaseResponse faceCompare(@RequestBody CompareImageVo compareImageVo){
|
|
public AppBaseResponse faceCompare(@RequestBody CompareImageVo compareImageVo){
|
|
|
|
|
+ String base64 = compareImageVo.getBase64();
|
|
|
|
|
+ if (StringUtils.isEmpty(base64)){
|
|
|
|
|
+ return AppBaseResponse.error(ResultCode.PARAM_IS_BLANK);
|
|
|
|
|
+ }
|
|
|
return adminOrderService.faceCompare(BeanCopyUtils.convertObj(compareImageVo, CompareImageDto.class));
|
|
return adminOrderService.faceCompare(BeanCopyUtils.convertObj(compareImageVo, CompareImageDto.class));
|
|
|
}
|
|
}
|
|
|
|
|
|