瀏覽代碼

fix: 主播主页

menghui 1 月之前
父節點
當前提交
2766e9f0e9
共有 1 個文件被更改,包括 11 次插入4 次删除
  1. 11 4
      WQPlayBallLiveQiu/WQPlayBallLiveQiu/Classes/LiveModule.m

+ 11 - 4
WQPlayBallLiveQiu/WQPlayBallLiveQiu/Classes/LiveModule.m

@@ -81,12 +81,19 @@ UNI_EXPORT_METHOD_SYNC(@selector(sendCommand:))
     }
     if(options.cmd == 1002){
         // 主播主页
-        WQCMD1002 * data = [WQCMD1002 mj_objectWithKeyValues:options.data];
+        
+    
+        
 
-        PBUserHomePageViewController *vc = [PBUserHomePageViewController new];
-        vc.memberId = data.id;
-        [[PBSDK yt_topmostViewController].navigationController pushViewController:vc animated:YES];
         
+        dispatch_async(dispatch_get_main_queue(), ^(void) {
+            WQCMD1002 * data = [WQCMD1002 mj_objectWithKeyValues:options.data];
+            PBUserHomePageViewController *vc = [PBUserHomePageViewController new];
+            vc.memberId = data.id;
+            [[PBSDK dc_findCurrentShowingViewController].navigationController pushViewController:vc animated:YES];
+            
+        });
+       
         return;
     }