Jelajahi Sumber

feat:js配置搜索入口

kailen 2 bulan lalu
induk
melakukan
cd19312bdd

+ 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 {