|
|
@@ -113,10 +113,16 @@ void QSDK_Init() {
|
|
|
//SendMsgToUnity(@"onInitSuccess",@"Init:Init Success");
|
|
|
//SendMsgToUnity(@"onInitSuccess",@"Fail");
|
|
|
//SDK初始化 code: 0:成功, 1:失败
|
|
|
+ NSString *gameId = @"127";
|
|
|
+ NSDictionary<NSString *, id> *infoDictionary = [NSBundle mainBundle].infoDictionary;
|
|
|
+ id value = [infoDictionary objectForKey:@"xuanyou_GameId"];
|
|
|
+ if (value != NULL && [value isKindOfClass:[NSString class]]) {
|
|
|
+ gameId = (NSString *)value;
|
|
|
+ }
|
|
|
NSDictionary *game = @{
|
|
|
// @"timestamp":@"XXXX",///设置此值来切换线上域名
|
|
|
// @"tempDomain":@"",///设置此值来切换线上域名
|
|
|
- @"gameId":@"7",///替换为实际游戏id
|
|
|
+ @"gameId":gameId,///替换为实际游戏id
|
|
|
};
|
|
|
[SPSDK.instance registerGame:game callback:SDK_Init_Callback];
|
|
|
SPSDK.instance.observer = SDK_observer_CallBack;
|