feat: 更新素材管理和举报风险地图
This commit is contained in:
@ -328,6 +328,19 @@ enum WildReportLocalMediaLoader {
|
||||
}
|
||||
}
|
||||
|
||||
extension MediaPreviewItem {
|
||||
/// 从举报本地附件创建媒体预览资源项。
|
||||
init?(wildReportAttachment attachment: WildReportAttachment) {
|
||||
guard let url = attachment.localFileURL else { return nil }
|
||||
switch attachment.kind {
|
||||
case .image, .payment:
|
||||
self = .localImage(url: url)
|
||||
case .video:
|
||||
self = .localVideo(url: url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// 举报模块附件缩略 tile,优先展示本地图片或视频封面。
|
||||
final class WildReportAttachmentTileView: UIControl {
|
||||
private let gradientLayer = CAGradientLayer()
|
||||
|
||||
Reference in New Issue
Block a user