|
@@ -226,7 +226,6 @@ public class ActorController {
|
|
public Result<Actor> add(@RequestBody Actor actor) {
|
|
public Result<Actor> add(@RequestBody Actor actor) {
|
|
Result<Actor> result = new Result<Actor>();
|
|
Result<Actor> result = new Result<Actor>();
|
|
try {
|
|
try {
|
|
-
|
|
|
|
String coverUrl = actor.getCoverUrl();
|
|
String coverUrl = actor.getCoverUrl();
|
|
if (!Check.isNull(coverUrl)) {
|
|
if (!Check.isNull(coverUrl)) {
|
|
if (!coverUrl.contains(KuaishouInterfaceConstant.HTTPS_PREFIX)) {
|
|
if (!coverUrl.contains(KuaishouInterfaceConstant.HTTPS_PREFIX)) {
|
|
@@ -234,8 +233,6 @@ public class ActorController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
actorService.save(actor);
|
|
actorService.save(actor);
|
|
- System.err.println(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();
|
|
@@ -261,7 +258,6 @@ public class ActorController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
result.success("添加成功!");
|
|
result.success("添加成功!");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(e.getMessage(), e);
|
|
log.error(e.getMessage(), e);
|