|
@@ -279,8 +279,16 @@ extension MVPlayViewController: UICollectionViewDelegate, UICollectionViewDataSo
|
|
|
PQBaseViewModel.h5ShareLinkInfo(videoId: videoData?.uniqueId ?? "", pageSource: videoData?.pageSource ?? .sp_category) { [weak self] path, _ in
|
|
|
cHiddenHUB(superView: nil)
|
|
|
if path != nil {
|
|
|
-
|
|
|
- PQSingletoWXApiUtil.shared.share(type: 1, scene: Int32(WXSceneTimeline.rawValue), title: videoData?.title ?? "\(BFLoginUserInfo.shared.nickName)made a music video for you", description: "", imageUrl: videoData?.shareImgPath, path: path, videoId: (videoData?.uniqueId)!, pageSource: videoData?.pageSource ?? .sp_category, shareId: shareId).wxApiUtilHander = { _, _ in
|
|
|
+
|
|
|
+ //判断shareText是否有效
|
|
|
+ var shareText = ""
|
|
|
+ shareText = videoData?.title?.replacingOccurrences(of: "\n", with: "") ?? ""
|
|
|
+ shareText = shareText.replacingOccurrences(of: " ", with: "")
|
|
|
+ if(shareText.count == 0){
|
|
|
+ shareText = "\(BFLoginUserInfo.shared.nickName)made a music video for you"
|
|
|
+ }
|
|
|
+
|
|
|
+ PQSingletoWXApiUtil.shared.share(type: 1, scene: Int32(WXSceneTimeline.rawValue), title:shareText , description: "", imageUrl: videoData?.shareImgPath, path: path, videoId: (videoData?.uniqueId)!, pageSource: videoData?.pageSource ?? .sp_category, shareId: shareId).wxApiUtilHander = { _, _ in
|
|
|
self?.currentActionBtn = sender
|
|
|
self?.currentVideoData = videoData
|
|
|
}
|