menghui 3 месяцев назад
Родитель
Сommit
0d29b3aafd

+ 2 - 0
HBuilder-Hello/HBuilder-Hello.xcodeproj/project.pbxproj

@@ -414,6 +414,7 @@
 		58C7A18C2D1C108100F8D7E3 /* libbz2.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libbz2.tbd; path = usr/lib/libbz2.tbd; sourceTree = SDKROOT; };
 		58C7A1932D1C10DA00F8D7E3 /* IJKMediaFrameworkWithSSL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IJKMediaFrameworkWithSSL.framework; path = ../SDK/Libs/IJKMediaFrameworkWithSSL.framework; sourceTree = "<group>"; };
 		58C7A1992D1C10F800F8D7E3 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
+		6531E2C82D6776C100F6119F /* DCUni */ = {isa = PBXFileReference; lastKnownFileType = folder; path = DCUni; sourceTree = "<group>"; };
 		67229ACB230171AE0093F29A /* libDCUniBarcode.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libDCUniBarcode.a; path = ../SDK/Libs/libDCUniBarcode.a; sourceTree = "<group>"; };
 		67229ACE230171AE0093F29A /* libDCUniGPUImage.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libDCUniGPUImage.a; path = ../SDK/Libs/libDCUniGPUImage.a; sourceTree = "<group>"; };
 		672CE2B222DC9118005A0D88 /* DCUniVideoPublic.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DCUniVideoPublic.framework; path = ../SDK/Libs/DCUniVideoPublic.framework; sourceTree = "<group>"; };
@@ -592,6 +593,7 @@
 		4F4C64522465600B006A13AA /* inc */ = {
 			isa = PBXGroup;
 			children = (
+				6531E2C82D6776C100F6119F /* DCUni */,
 				4F4C64532465600B006A13AA /* PDRCoreAppWindow.h */,
 				4F4C64542465600B006A13AA /* PDRNView.h */,
 				4F4C64552465600B006A13AA /* PDRCommonString.h */,

+ 12 - 1
WQPlayBallLiveQiu/WQPlayBallLiveQiu/Classes/LiveAppProxy.m

@@ -1,7 +1,7 @@
 
 #import "LiveAppProxy.h"
 #import <PBSDK/PBSDK.h>
-
+#import "DCUni/DCUniBasePlugin.h"
 
 @implementation LiveAppProxy
 
@@ -13,6 +13,17 @@
     NSLog(@"UniPluginProtocol Func: %@,%s",self,__func__);
     [PBSDK initWithAppId:@"c93964b68aaf43e38f1860835c87d9f2"];
     PBSDK.shared.isUser = true;
+//    PBSDK.shared.navigateToVuePageBlock = ^(NSString *url){
+//        [DCUniSDKInstance ]
+//           
+//           // 设置 UniViewController 加载的 Vue 页面路径
+//           [uniVC setUniUrl:@"/pages/vuePage/vuePage"];
+//
+//           // 使用导航控制器推送 UniViewController
+//           [self.navigationController pushViewController:uniVC animated:YES];
+//       }
+//
+//    };
     return YES;
 }
 

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

@@ -12,6 +12,7 @@
 #import <PBSDK/PBSDK.h>
 #import <PBSDK/PBUser.h>
 #import <PBSDK/TokenManager.h>
+#import <PBSDK/PBUserHomePageViewController.h>
 
 @implementation LiveModule
 - (instancetype)init{
@@ -78,6 +79,16 @@ UNI_EXPORT_METHOD_SYNC(@selector(sendCommand:))
         
         return;
     }
+    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];
+        
+        return;
+    }
     
     
 }

+ 7 - 0
WQPlayBallLiveQiu/WQPlayBallLiveQiu/Classes/WQOptions.h

@@ -20,6 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property (nonatomic, strong) NSObject *data;
 
 
+
 @end
 
 
@@ -46,4 +47,10 @@ NS_ASSUME_NONNULL_BEGIN
 @property (nonatomic,strong) WQUserInfo *userInfo;
 @end
 
+
+@interface WQCMD1002 : NSObject
+@property (nonatomic,  copy ) NSString *id;
+
+@end
+
 NS_ASSUME_NONNULL_END