|
@@ -22,6 +22,7 @@ import cn.reghao.tnb.content.app.vod.model.po.VideoPost;
|
|
|
import cn.reghao.tnb.content.app.vod.model.query.AlbumQuery;
|
|
import cn.reghao.tnb.content.app.vod.model.query.AlbumQuery;
|
|
|
import cn.reghao.tnb.content.app.vod.model.vo.AlbumInfo;
|
|
import cn.reghao.tnb.content.app.vod.model.vo.AlbumInfo;
|
|
|
import cn.reghao.tnb.content.app.vod.model.vo.AlbumItem;
|
|
import cn.reghao.tnb.content.app.vod.model.vo.AlbumItem;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -32,6 +33,7 @@ import java.util.stream.Collectors;
|
|
|
* @author reghao
|
|
* @author reghao
|
|
|
* @date 2024-10-31 14:03:30
|
|
* @date 2024-10-31 14:03:30
|
|
|
*/
|
|
*/
|
|
|
|
|
+@Slf4j
|
|
|
@Service
|
|
@Service
|
|
|
public class AlbumService {
|
|
public class AlbumService {
|
|
|
@DubboReference(check = false)
|
|
@DubboReference(check = false)
|
|
@@ -119,7 +121,7 @@ public class AlbumService {
|
|
|
String signedUrl = ossService.getSignedUrl(objectId, null);
|
|
String signedUrl = ossService.getSignedUrl(objectId, null);
|
|
|
postAlbum.setCoverUrl(signedUrl);
|
|
postAlbum.setCoverUrl(signedUrl);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
|
+ log.error("{}", e.getMessage());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -155,7 +157,7 @@ public class AlbumService {
|
|
|
String signedUrl = ossService.getSignedUrl(objectId, null);
|
|
String signedUrl = ossService.getSignedUrl(objectId, null);
|
|
|
postAlbum.setCoverUrl(signedUrl);
|
|
postAlbum.setCoverUrl(signedUrl);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
|
+ log.error("{}", e.getMessage());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|