瀏覽代碼

feat:js配置搜索入口

kailen 2 月之前
父節點
當前提交
cd19312bdd
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      TSLiveWallpaper/Business/TSMusic/List/Controller/MusicContainerViewController.swift

+ 6 - 6
TSLiveWallpaper/Business/TSMusic/List/Controller/MusicContainerViewController.swift

@@ -125,15 +125,15 @@ class MusicContainerViewController: LWBGViewController {
 
     @objc func showSearchViewController() {
 //        if PurchaseManager.default.isVip {
-//        if TSConfiguration.isYs {
+        if TSConfiguration.isYs {
             let vc = SearchOnlineViewController()
             vc.hidesBottomBarWhenPushed = true
             navigationController?.pushViewController(vc, animated: true)
-//        } else {
-//            let vc = LocalSearchViewController()
-//            vc.hidesBottomBarWhenPushed = true
-//            navigationController?.pushViewController(vc, animated: true)
-//        }
+        } else {
+            let vc = LocalSearchViewController()
+            vc.hidesBottomBarWhenPushed = true
+            navigationController?.pushViewController(vc, animated: true)
+        }
 //        } else {
 //            ADManager.shared.showAd(scene: ADScene.searchInsert, from: self) { state in
 //                if state == .finished || state == .fail {