|
@@ -227,11 +227,18 @@ public class ActorController {
|
|
Result<Actor> result = new Result<Actor>();
|
|
Result<Actor> result = new Result<Actor>();
|
|
try {
|
|
try {
|
|
|
|
|
|
|
|
+ String coverUrl = actor.getCoverUrl();
|
|
|
|
+ if (!Check.isNull(coverUrl)) {
|
|
|
|
+ if (!coverUrl.contains(KuaishouInterfaceConstant.HTTPS_PREFIX)) {
|
|
|
|
+ actor.setCoverUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + coverUrl);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ actorService.save(actor);
|
|
|
|
+
|
|
if (actor.getImageUrl() != null && actor.getImageUrl().size() > 0) {
|
|
if (actor.getImageUrl() != null && actor.getImageUrl().size() > 0) {
|
|
for (String url : actor.getImageUrl()) {
|
|
for (String url : actor.getImageUrl()) {
|
|
ActorPhoto photo = new ActorPhoto();
|
|
ActorPhoto photo = new ActorPhoto();
|
|
photo.setActorId(actor.getId());
|
|
photo.setActorId(actor.getId());
|
|
-
|
|
|
|
if (!Check.isNull(url)) {
|
|
if (!Check.isNull(url)) {
|
|
if (!url.contains(KuaishouInterfaceConstant.HTTPS_PREFIX)) {
|
|
if (!url.contains(KuaishouInterfaceConstant.HTTPS_PREFIX)) {
|
|
photo.setPhotoUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + url);
|
|
photo.setPhotoUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + url);
|
|
@@ -249,19 +256,11 @@ public class ActorController {
|
|
video.setVideoUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + url);
|
|
video.setVideoUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + url);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
actorVideoService.save(video);
|
|
actorVideoService.save(video);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- String coverUrl = actor.getCoverUrl();
|
|
|
|
- if (!Check.isNull(coverUrl)) {
|
|
|
|
- if (!coverUrl.contains(KuaishouInterfaceConstant.HTTPS_PREFIX)) {
|
|
|
|
- actor.setCoverUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + coverUrl);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- actorService.save(actor);
|
|
|
|
|
|
+
|
|
result.success("添加成功!");
|
|
result.success("添加成功!");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(e.getMessage(), e);
|
|
log.error(e.getMessage(), e);
|