|
@@ -1,9 +1,9 @@
|
|
|
#import "SDKManager.h"
|
|
|
-#import <StraightPush/StraightPush.h> // douyou SDK
|
|
|
+#import <UnderscorePush/UnderscorePush.h>// douyou SDK
|
|
|
#include "UnityInterface.h" // Example header file where UnitySendMessage is declared
|
|
|
-
|
|
|
+
|
|
|
@implementation SDKManager
|
|
|
-
|
|
|
+
|
|
|
//单例构造当前类
|
|
|
+ (instancetype)sharedInstance {
|
|
|
static SDKManager *sharedInstance = nil;
|
|
@@ -20,10 +20,10 @@
|
|
|
if (shouldLog != self.shouldLog) {
|
|
|
self.shouldLog = shouldLog;
|
|
|
}
|
|
|
- [[PullInter bringInstance] ownDigitMap:gameId ring:adId focusedBlock:^(NSDictionary *params) {
|
|
|
+ [[Promotion stillInstance] moleGetGray:gameId swap:adId invitedBlock:^(NSDictionary *params) {
|
|
|
if (self.shouldLog) {
|
|
|
NSLog(@"初始化成功:%@", params);
|
|
|
- }
|
|
|
+ }
|
|
|
[self sendJsonToUnity:params gameObject:"IosReceiverGameObj" methodName:"InitSuccess"];
|
|
|
} failureBlock:^(NSError *error) {
|
|
|
if (self.shouldLog) {
|
|
@@ -35,7 +35,7 @@
|
|
|
|
|
|
//调起登陆
|
|
|
- (void)Login {
|
|
|
- [[PullInter bringInstance] zipBannerBlock:^(NSDictionary *params) {
|
|
|
+ [[Promotion stillInstance] sleetHairBlock:^(NSDictionary *params) {
|
|
|
if (self.shouldLog) {
|
|
|
NSLog(@"登录成功:%@", params);
|
|
|
}
|
|
@@ -45,7 +45,7 @@
|
|
|
NSLog(@"登录失败:%@", error);
|
|
|
}
|
|
|
[self sendErrorToUnity:error gameObject:"IosReceiverGameObj" methodName:"LoginError"];
|
|
|
- } forkDogFixGetBlock:^(NSDictionary *params) {
|
|
|
+ } justRainMouthBlock:^(NSDictionary *params) {
|
|
|
if (self.shouldLog) {
|
|
|
NSLog(@"切换账号回调");
|
|
|
}
|
|
@@ -55,7 +55,7 @@
|
|
|
|
|
|
//退出登陆
|
|
|
- (void)Logout {
|
|
|
- [[PullInter bringInstance] sortWetTipBlock:^(NSDictionary *params) {
|
|
|
+ [[Promotion stillInstance] forSwedishBlock:^(NSDictionary *params) {
|
|
|
if (self.shouldLog) {
|
|
|
NSLog(@"登出成功%@", params);
|
|
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
|
|
|
// 调起支付
|
|
|
- (void)PaymentWithJson:(NSDictionary *)paymentInfo {
|
|
|
- [[PullInter bringInstance] hexSlabBlock:paymentInfo focusedBlock:^(NSDictionary *params) {
|
|
|
+ [[Promotion stillInstance] wrapHasBlock:paymentInfo invitedBlock:^(NSDictionary *params) {
|
|
|
if (self.shouldLog) {
|
|
|
NSLog(@"支付成功:%@", params);
|
|
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
|
|
|
// 角色升级上报
|
|
|
- (void)RoleInfoWithJson:(NSDictionary *)roleInfo {
|
|
|
- [[PullInter bringInstance] georgianDrumBlock:roleInfo focusedBlock:^(NSDictionary *params) {
|
|
|
+ [[Promotion stillInstance] fusionRhythmBlock:roleInfo invitedBlock:^(NSDictionary *params) {
|
|
|
if (self.shouldLog) {
|
|
|
NSLog(@"角色升级上报成功:%@", params);
|
|
|
}
|