Browse Source

no message

Chris 5 years ago
parent
commit
3fd74563aa

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/ViewController/CommunityVideoListController.swift

@@ -256,7 +256,7 @@ extension CommunityVideoListController {
     }
     
     func playFirstVideoWhenViewDidAppeared() {
-        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(0.2 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)) { () -> Void in
+        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(0.4 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)) { () -> Void in
             let showCells = self.collectionView.visibleCells
             for tmpCell in showCells {
                 let videoCell = tmpCell as? CommunityVideoCoverCollectionCell

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishEditController/Controller/PublishEditController.swift

@@ -151,7 +151,7 @@ extension PublishEditController : UITableViewDelegate, UITableViewDataSource {
             picCell.reloadData()
             picCell.choosePicBlock = {
                 [weak self] in
-                print("\n----选取图片")
+                self?.navigationController?.popViewController(animated: false)
             }
             picCell.delPicTransBlock = {
                 [weak self] (picIdx) in

+ 8 - 2
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishManager/PublishUploadManager.swift

@@ -155,6 +155,12 @@ extension PublishUploadManager {
         SwiftMoyaNetWorkServiceConfig.shared().configUploadSingleImgWithoutHudApi(imageArray: [self.imageArr![totalTimes]]) {
             [weak self] (imgUrl) -> (Void) in
             let urlStr: String = imgUrl as! String
+            
+//            let curImage: UIImage = self!.imageArr![totalTimes]
+//            let imgWidth  = curImage.size.width
+//            let imgHeight = curImage.size.height
+//            urlStr = String(format: "%@?%f_%f", urlStr, imgWidth, imgHeight)
+            
             self?.imageUrlArray.append(urlStr)
             if curTimes == 0 {
                 // 设置主图
@@ -228,8 +234,8 @@ extension PublishUploadManager {
         
         print("\n----------发布成功!!!!!")
         isPublishFinished = true
-//        progressView?.hide()
+        progressView?.hide()
         
-        progressView?.curUploadStatus = UploadStatus.failure
+//        progressView?.curUploadStatus = UploadStatus.failure
     }
 }