Browse Source

feat:开发环境

hello 1 month ago
parent
commit
f9fa7181f6

+ 1 - 1
HBuilder-Hello/HBuilder-Hello.xcodeproj/xcshareddata/xcschemes/HBuilder.xcscheme

@@ -31,7 +31,7 @@
       shouldAutocreateTestPlan = "YES">
    </TestAction>
    <LaunchAction
-      buildConfiguration = "Release"
+      buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"

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

@@ -10,6 +10,7 @@
 #import "WQOptions.h"
 #import <MJExtension/MJExtension.h>
 #import <PBSDK/PBSDK.h>
+#import <PBSDK/PBNetwork.h>
 #import <PBSDK/PBUser.h>
 #import <PBSDK/TokenManager.h>
 #import <PBSDK/PBUserHomePageViewController.h>
@@ -28,6 +29,7 @@ UNI_EXPORT_METHOD(@selector(configSDK:))
 - (void)configSDK:(NSString *)options
 {
     WQOptions *params =  [WQOptions mj_objectWithKeyValues:options];
+    [PBNetwork shared].isProd = (params.isPrd == 1);
 //     options = @"{\"isPrd\":1}";
     
 }