allez
2022-06-29 913770aa650099bb7c1c3df1d4f89e1fa93b7775
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm
@@ -31,7 +31,8 @@
static NSString* sUserName;
static NSThread* _thread;
static int initedState=0; //初始化状态,0初始化中,1成功,2失败
//初始化状态,0初始化中,1成功
static int initedState=0;
static NSString * const kClientID = @"468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd.apps.googleusercontent.com";
@@ -213,7 +214,7 @@
    [Soha sohaInitWithGameDelegate:self
                          application:[UIApplication sharedApplication]
                        launchOptions:launchOptions
                        loginManually:NO
                        loginManually:YES
                     andSetLanguageTo:SohaSDKLanguageVietnam];
    [Soha showInAppPopupTracking];
@@ -359,9 +360,9 @@
        case U2S_FreePlatformLogin:
            [self PlatformLogin];
            break;
        case U2S_ShowAccountView:
        case U2S_GoToAppStore:
        {
            [[UIApplication sharedApplication] openURL:[NSURL URLWithString:_dict[@"url"]] options:@{} completionHandler:nil];
        }
            break;
        case U2S_FreePlatformLogout:
@@ -468,6 +469,20 @@
        case U2S_DelAccount:
            [Soha deleteAccount];
            break;
        case U2S_GoToReview:
        {
            [Soha requestReviewApp];
            break;
        }
        case U2S_CloseVote:
        {
            break;
        }
        case U2S_OpenDashboard:
        {
            [Soha sohaDashboard];
            break;
        }
    }
}