|
@@ -91,12 +91,12 @@ class BFMusicSearchController: BFBaseViewController {
|
|
|
tb.register(BFMusicInfoSearchCell.self, forCellReuseIdentifier: "BFMusicInfoSearchCell")
|
|
|
tb.tableFooterView = UIView()
|
|
|
tb.backgroundColor = .clear
|
|
|
- tb.mj_footer = MJRefreshAutoFooter.init(refreshingBlock: {[weak self] in
|
|
|
- guard let wself = self else { return }
|
|
|
- if wself.searchResults.count > 0 {
|
|
|
- wself.requestSearchMusic()
|
|
|
- }
|
|
|
- })
|
|
|
+// tb.mj_footer = MJRefreshAutoFooter.init(refreshingBlock: {[weak self] in
|
|
|
+// guard let wself = self else { return }
|
|
|
+// if wself.searchResults.count > 0 {
|
|
|
+// wself.requestSearchMusic()
|
|
|
+// }
|
|
|
+// })
|
|
|
return tb
|
|
|
}()
|
|
|
|
|
@@ -140,7 +140,7 @@ class BFMusicSearchController: BFBaseViewController {
|
|
|
progressL.frame = CGRect(x: slidV.x - 7, y: slidV.y - 24, width: 36, height: 16)
|
|
|
view.addSubview(progressL)
|
|
|
|
|
|
- musicVolume = 0.2
|
|
|
+// musicVolume = 0.2
|
|
|
|
|
|
loadedTimeRangesObserver = player.observe(\AVPlayer.currentItem?.loadedTimeRanges, options: [.new, .initial]) { [weak self] (player, change) in
|
|
|
|
|
@@ -306,8 +306,8 @@ extension BFMusicSearchController : UITableViewDelegate, UITableViewDataSource {
|
|
|
cShowHUB(superView: nil, msg: "搜索不能为空")
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
- BFNetRequestAdaptor.postRequestData(url: PQENVUtil.shared.materialSearchApi + searchBGMMaterialUrl, parames: ["keyWord": keywork, "pageNo": currPage, "pageSize": 20], commonParams: commonParams(), encoding: JSONEncoding.default, isJsonEncodingNormal: true) { [weak self] response, _, error, _ in
|
|
|
+
|
|
|
+ BFNetRequestAdaptor.postRequestData(url: PQENVUtil.shared.materialSearchApi + searchBGMMaterialUrl, parames: ["keyWord": keywork, "pageNo": 1, "pageSize": 200], commonParams: commonParams(), encoding: JSONEncoding.default, isJsonEncodingNormal: true) { [weak self] response, _, error, _ in
|
|
|
DispatchQueue.global().async {[weak self] in
|
|
|
guard let wself = self else { return }
|
|
|
|