修复bug
This commit is contained in:
@@ -98,6 +98,7 @@
|
||||
}
|
||||
|
||||
+ (NSString *)getSDKVersion {
|
||||
|
||||
return [NSString stringWithFormat:@"v%@",[SudMGP getVersion]];
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user