修复bug

This commit is contained in:
liyuhua
2023-09-28 14:41:16 +08:00
parent 51ae61bdd7
commit 1cc903a0b1
2 changed files with 7 additions and 5 deletions

View File

@@ -98,6 +98,7 @@
}
+ (NSString *)getSDKVersion {
return [NSString stringWithFormat:@"v%@",[SudMGP getVersion]];
}

View File

@@ -8,7 +8,7 @@
#import "XPRoomLittleGameContainerView.h"
///Third
#import <Masonry/Masonry.h>
#import <SudMGP/SudMGP.h>
#import <NIMSDK/NIMSDK.h>
///Tool
#import "Api+LittleGame.h"
@@ -27,10 +27,9 @@
#import "XPKickUserModel.h"
#import "GuildSuperAdminInfoModel.h"
///P
#import <SudMGP/ISudFSMMG.h>
#import <SudMGP/ISudFSTAPP.h>
#import <SudMGP/SudMGP.h>
#import <SudMGP/ISudFSMStateHandle.h>
#import <SudMGP/SudMGP-umbrella.h>
@interface XPRoomLittleGameContainerView ()<RoomGuestDelegate,ISudFSMMG>
///ID
@property (nonatomic, assign) int64_t currentmgId;
@@ -103,6 +102,7 @@
#else
isTestEnv = NO;
#endif
[[SudMGP getCfg]setBackgroundMode:NO];
[SudMGP initSDK:KeyWithType(KeyType_SudGameAppID) appKey:KeyWithType(KeyType_SudGameAppKey) isTestEnv:isTestEnv listener:^(int retCode, const NSString *retMsg) {
if (retCode == 0) {
if (!self.currentmgId) {
@@ -124,6 +124,7 @@
language = @"zh-Hant"; //
}
self.fsmAPP2MG = [SudMGP loadMG:userId roomId:roomId code:self.code mgId:self.currentmgId language:[language isEqualToString:@"zh-Hant"]? @"zh-TW" : @"zh-CN" fsmMG:self rootView:self];
} else {
/// ,
NSLog(@"ISudFSMMG:initGameSDKWithAppID:初始化sdk失败 :%@",retMsg);