Browse Source

Merge branch 'photo' of https://git.malls.iformall.com/suimang/suimangServer into photo

private_deployment
xhxu 2 years ago
parent
commit
d801debbf2
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      suimangService/src/main/java/com/iformall/service/sm/impl/PhotoSpeakVideoServiceImpl.java

+ 6
- 3
suimangService/src/main/java/com/iformall/service/sm/impl/PhotoSpeakVideoServiceImpl.java View File

@@ -159,14 +159,17 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService {
videoUpd.setId(photoSpeakVideo.getId());

String personPhotoUrl = null;
if(photoSpeakVideo.getPersonPhotoId() == null){
if (photoSpeakVideo.getPersonPhotoId() == null) {
msg = "未查询到人物照片";
}else{
} else {
personPhotoUrl = photoSpeakVideo.getPersonPhotoUrl();
//校验图片是否合法
ResultData data = personPhotoService.checkPhoto(personPhotoUrl);
if (data.code != 2000) {
return new AsyncResult<>(data.message);
videoUpd.setVideoStatus(EnumVideoStatus.fail.getCode());
videoUpd.setVideoMsg("图片质量审核失败:" + data.message);
this.saveOrUpdate(videoUpd);
return new AsyncResult<>(0);
}
}
if(StringUtils.isBlank(personPhotoUrl)){


Loading…
Cancel
Save