lizhihui

更新0912版本 修复BUG CPS

Showing 43 changed files with 199 additions and 199 deletions
No preview for this file type
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; };
26905EC32148BE3200A830F1 /* HeroesSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26905EC22148BE3100A830F1 /* HeroesSDK.framework */; };
26905EC52148C25D00A830F1 /* RainbowSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26905EC42148C25C00A830F1 /* RainbowSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -61,7 +61,7 @@
/* Begin PBXFileReference section */
260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
26905EC22148BE3100A830F1 /* HeroesSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HeroesSDK.framework; sourceTree = "<group>"; };
26905EC42148C25C00A830F1 /* RainbowSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = RainbowSDK.framework; sourceTree = "<group>"; };
845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; };
......@@ -105,6 +105,7 @@
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
26905EC52148C25D00A830F1 /* RainbowSDK.framework in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
......@@ -114,7 +115,6 @@
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
26905EC32148BE3200A830F1 /* HeroesSDK.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */,
......@@ -144,7 +144,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26905EC22148BE3100A830F1 /* HeroesSDK.framework */,
26905EC42148C25C00A830F1 /* RainbowSDK.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HeroesAllManager : NSObject
{
NSString* HeroesCKAPPID_;
NSString* HeroesCKAPPKEY_;
NSString* HeroesInviterCode_;
}
@property bool HeroesGeiWoHuaQianBa;
+ (HeroesAllManager *)HeroesInstance;
- (void)HeroesChuShiHua;
- (void)HeroesDengLu:(NSString *)HeroesCKAPPID : (NSString *)HeroesCKAPPKEY : (UIViewController *)controller;
- (void)HeroesYangShi:(NSString*)HeroesLeiXing;
- (void)HeroesCKQuery: (NSString *)HeroesFuWuQiID : (NSString *)HeroesNickName : (NSNumber *)HeroesAmount : (NSString *)HeroesCallBack : (UIViewController *)controller;
- (void)HeroesCKQueryOperation:(UIViewController*)controll HeroesHuoWuID:(NSString*)products HeroesJiaGe:(NSString*)amount HeroesHuoWuMing:(NSString*)productName HeroesDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HeroesCKAssetsExitNotification;
extern NSString * const HeroesCKAssetsLoginNotification;
extern NSString * const HeroesCKAssetsErrorNotification;
@interface HeroesHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface HeroesIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HeroesDingDanHao;
@property(nonatomic,strong) NSDictionary* HeroesHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HeroesHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HeroesHuoWuLieBiaoView;
- (void)HeroesHuaQianView:(UIViewController*)controller HeroesHuoWuD:(NSString*)products HeroesQian:(NSString*)amount HeroesHuoWuMing:(NSString*)productName HeroesDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface HeroesMsgJM : NSObject
+(NSString *)HeroesJM:(NSString *)jm;
+(void)HeroesEmptyqweS12Jijis;
+(void)HeroesEmptyjqw3123eakdjl;
+(void)HeroesEmptynqw123evcxnklr;
-(void)HeroesEmptyasqw123edll;
-(void)HeroesEmptyasqw12312edlasdl;
-(void)HeroesEmptyasdq3123wellasd;
+(void)HeroesEmptyain;
-(void)HeroesEmptybua3in;
+(void)HeroesEmptya3in;
-(void)HeroesEmptybu2ain;
+(void)HeroesEmptyai2n;
-(void)HeroesEmptybu1ain;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface RainbowAllManager : NSObject
{
NSString* RainbowCKAPPID_;
NSString* RainbowCKAPPKEY_;
NSString* RainbowInviterCode_;
}
@property bool RainbowGeiWoHuaQianBa;
+ (RainbowAllManager *)RainbowInstance;
- (void)RainbowChuShiHua;
- (void)RainbowDengLu:(NSString *)RainbowCKAPPID : (NSString *)RainbowCKAPPKEY : (UIViewController *)controller;
- (void)RainbowYangShi:(NSString*)RainbowLeiXing;
- (void)RainbowCKQuery: (NSString *)RainbowFuWuQiID : (NSString *)RainbowNickName : (NSNumber *)RainbowAmount : (NSString *)RainbowCallBack : (UIViewController *)controller;
- (void)RainbowCKQueryOperation:(UIViewController*)controll RainbowHuoWuID:(NSString*)products RainbowJiaGe:(NSString*)amount RainbowHuoWuMing:(NSString*)productName RainbowDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface HeroesDiZhi : NSObject
@interface RainbowDiZhi : NSObject
+ (NSString *)HeroesSKCloudServiceSetupOptionsKey;
+ (NSString *)RainbowSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const RainbowCKAssetsExitNotification;
extern NSString * const RainbowCKAssetsLoginNotification;
extern NSString * const RainbowCKAssetsErrorNotification;
@interface RainbowHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface RainbowIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* RainbowDingDanHao;
@property(nonatomic,strong) NSDictionary* RainbowHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* RainbowHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *RainbowHuoWuLieBiaoView;
- (void)RainbowHuaQianView:(UIViewController*)controller RainbowHuoWuD:(NSString*)products RainbowQian:(NSString*)amount RainbowHuoWuMing:(NSString*)productName RainbowDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "HeroesXinXi.h"
#import "RainbowXinXi.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HeroesMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface RainbowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL HeroesYouYuanJiao;
@property(assign) BOOL RainbowYouYuanJiao;
- (void)HeroesSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HeroesChuShiHuaWebView;
- (void)RainbowSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)RainbowChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface RainbowMsgJM : NSObject
+(NSString *)RainbowJM:(NSString *)jm;
+(void)RainbowEmptyqweS12Jijis;
+(void)RainbowEmptyjqw3123eakdjl;
+(void)RainbowEmptynqw123evcxnklr;
-(void)RainbowEmptyasqw123edll;
-(void)RainbowEmptyasqw12312edlasdl;
-(void)RainbowEmptyasdq3123wellasd;
+(void)RainbowEmptyain;
-(void)RainbowEmptybua3in;
+(void)RainbowEmptya3in;
-(void)RainbowEmptybu2ain;
+(void)RainbowEmptyai2n;
-(void)RainbowEmptybu1ain;
@end
#import <Foundation/Foundation.h>
@interface HeroesXinXi : NSObject
@interface RainbowXinXi : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HeroesXinXi *)getInstance;
+ (RainbowXinXi *)getInstance;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HeroesSDK/HeroesAllManager.h"
#import "HeroesSDK/HeroesHuiTiaoNotification.h"
#import "HeroesSDK/HeroesXinXi.h"
#import "RainbowSDK/RainbowAllManager.h"
#import "RainbowSDK/RainbowHuiTiaoNotification.h"
#import "RainbowSDK/RainbowXinXi.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *HeroesSDKAppId;
NSString *HeroesSDKAppKey;
NSString *RainbowSDKAppId;
NSString *RainbowSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *HeroesSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[HeroesAllManager HeroesInstance]HeroesChuShiHua];
[[HeroesAllManager HeroesInstance]HeroesYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HeroesCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HeroesCKAssetsToolCallBack" object:nil];
[[RainbowAllManager RainbowInstance]RainbowChuShiHua];
[[RainbowAllManager RainbowInstance]RainbowYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RainbowCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RainbowCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *HeroesSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
HeroesSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
HeroesSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HeroesAllManager HeroesInstance]HeroesDengLu:HeroesSDKAppId :HeroesSDKAppKey :self.controller];
RainbowSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
RainbowSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[RainbowAllManager RainbowInstance]RainbowDengLu:RainbowSDKAppId :RainbowSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *HeroesSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[HeroesXinXi getInstance]openId];
loginInfo.sign = [[HeroesXinXi getInstance] token];
loginInfo.timestamp = [[HeroesXinXi getInstance] timestamp];
loginInfo.openId = [[RainbowXinXi getInstance]openId];
loginInfo.sign = [[RainbowXinXi getInstance] token];
loginInfo.timestamp = [[RainbowXinXi getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *HeroesSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HeroesCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"RainbowCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *HeroesSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HeroesAllManager HeroesInstance] HeroesCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[RainbowAllManager RainbowInstance] RainbowCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[HeroesAllManager HeroesInstance] HeroesCKQueryOperation:self.controller HeroesHuoWuID:products HeroesJiaGe:[payInfo postAmount] HeroesHuoWuMing:[payInfo productName] HeroesDingDanHao:queryId];
[[RainbowAllManager RainbowInstance] RainbowCKQueryOperation:self.controller RainbowHuoWuID:products RainbowJiaGe:[payInfo postAmount] RainbowHuoWuMing:[payInfo productName] RainbowDingDanHao:queryId];
}
}
......
......@@ -3,7 +3,7 @@
2018-09-12:<br>
在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br>
1、``` 删除pool_file文件夹中DivisionSDK.framework或者OtakusSDK.framework ``` <br>
2、引入 ``` HeroesSDK.framework ``` <br>
2、引入 ``` RainbowSDK.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br>
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HeroesAllManager : NSObject
{
NSString* HeroesCKAPPID_;
NSString* HeroesCKAPPKEY_;
NSString* HeroesInviterCode_;
}
@property bool HeroesGeiWoHuaQianBa;
+ (HeroesAllManager *)HeroesInstance;
- (void)HeroesChuShiHua;
- (void)HeroesDengLu:(NSString *)HeroesCKAPPID : (NSString *)HeroesCKAPPKEY : (UIViewController *)controller;
- (void)HeroesYangShi:(NSString*)HeroesLeiXing;
- (void)HeroesCKQuery: (NSString *)HeroesFuWuQiID : (NSString *)HeroesNickName : (NSNumber *)HeroesAmount : (NSString *)HeroesCallBack : (UIViewController *)controller;
- (void)HeroesCKQueryOperation:(UIViewController*)controll HeroesHuoWuID:(NSString*)products HeroesJiaGe:(NSString*)amount HeroesHuoWuMing:(NSString*)productName HeroesDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HeroesCKAssetsExitNotification;
extern NSString * const HeroesCKAssetsLoginNotification;
extern NSString * const HeroesCKAssetsErrorNotification;
@interface HeroesHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface HeroesIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HeroesDingDanHao;
@property(nonatomic,strong) NSDictionary* HeroesHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HeroesHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HeroesHuoWuLieBiaoView;
- (void)HeroesHuaQianView:(UIViewController*)controller HeroesHuoWuD:(NSString*)products HeroesQian:(NSString*)amount HeroesHuoWuMing:(NSString*)productName HeroesDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface HeroesMsgJM : NSObject
+(NSString *)HeroesJM:(NSString *)jm;
+(void)HeroesEmptyqweS12Jijis;
+(void)HeroesEmptyjqw3123eakdjl;
+(void)HeroesEmptynqw123evcxnklr;
-(void)HeroesEmptyasqw123edll;
-(void)HeroesEmptyasqw12312edlasdl;
-(void)HeroesEmptyasdq3123wellasd;
+(void)HeroesEmptyain;
-(void)HeroesEmptybua3in;
+(void)HeroesEmptya3in;
-(void)HeroesEmptybu2ain;
+(void)HeroesEmptyai2n;
-(void)HeroesEmptybu1ain;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface RainbowAllManager : NSObject
{
NSString* RainbowCKAPPID_;
NSString* RainbowCKAPPKEY_;
NSString* RainbowInviterCode_;
}
@property bool RainbowGeiWoHuaQianBa;
+ (RainbowAllManager *)RainbowInstance;
- (void)RainbowChuShiHua;
- (void)RainbowDengLu:(NSString *)RainbowCKAPPID : (NSString *)RainbowCKAPPKEY : (UIViewController *)controller;
- (void)RainbowYangShi:(NSString*)RainbowLeiXing;
- (void)RainbowCKQuery: (NSString *)RainbowFuWuQiID : (NSString *)RainbowNickName : (NSNumber *)RainbowAmount : (NSString *)RainbowCallBack : (UIViewController *)controller;
- (void)RainbowCKQueryOperation:(UIViewController*)controll RainbowHuoWuID:(NSString*)products RainbowJiaGe:(NSString*)amount RainbowHuoWuMing:(NSString*)productName RainbowDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface HeroesDiZhi : NSObject
@interface RainbowDiZhi : NSObject
+ (NSString *)HeroesSKCloudServiceSetupOptionsKey;
+ (NSString *)RainbowSKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const RainbowCKAssetsExitNotification;
extern NSString * const RainbowCKAssetsLoginNotification;
extern NSString * const RainbowCKAssetsErrorNotification;
@interface RainbowHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface RainbowIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* RainbowDingDanHao;
@property(nonatomic,strong) NSDictionary* RainbowHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* RainbowHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *RainbowHuoWuLieBiaoView;
- (void)RainbowHuaQianView:(UIViewController*)controller RainbowHuoWuD:(NSString*)products RainbowQian:(NSString*)amount RainbowHuoWuMing:(NSString*)productName RainbowDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "HeroesXinXi.h"
#import "RainbowXinXi.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HeroesMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface RainbowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL HeroesYouYuanJiao;
@property(assign) BOOL RainbowYouYuanJiao;
- (void)HeroesSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HeroesChuShiHuaWebView;
- (void)RainbowSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)RainbowChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface RainbowMsgJM : NSObject
+(NSString *)RainbowJM:(NSString *)jm;
+(void)RainbowEmptyqweS12Jijis;
+(void)RainbowEmptyjqw3123eakdjl;
+(void)RainbowEmptynqw123evcxnklr;
-(void)RainbowEmptyasqw123edll;
-(void)RainbowEmptyasqw12312edlasdl;
-(void)RainbowEmptyasdq3123wellasd;
+(void)RainbowEmptyain;
-(void)RainbowEmptybua3in;
+(void)RainbowEmptya3in;
-(void)RainbowEmptybu2ain;
+(void)RainbowEmptyai2n;
-(void)RainbowEmptybu1ain;
@end
#import <Foundation/Foundation.h>
@interface HeroesXinXi : NSObject
@interface RainbowXinXi : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HeroesXinXi *)getInstance;
+ (RainbowXinXi *)getInstance;
@end
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "HeroesSDK/HeroesAllManager.h"
#import "HeroesSDK/HeroesHuiTiaoNotification.h"
#import "HeroesSDK/HeroesXinXi.h"
#import "RainbowSDK/RainbowAllManager.h"
#import "RainbowSDK/RainbowHuiTiaoNotification.h"
#import "RainbowSDK/RainbowXinXi.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *HeroesSDKAppId;
NSString *HeroesSDKAppKey;
NSString *RainbowSDKAppId;
NSString *RainbowSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *HeroesSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[HeroesAllManager HeroesInstance]HeroesChuShiHua];
[[HeroesAllManager HeroesInstance]HeroesYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HeroesCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HeroesCKAssetsToolCallBack" object:nil];
[[RainbowAllManager RainbowInstance]RainbowChuShiHua];
[[RainbowAllManager RainbowInstance]RainbowYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RainbowCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RainbowCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *HeroesSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
HeroesSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
HeroesSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HeroesAllManager HeroesInstance]HeroesDengLu:HeroesSDKAppId :HeroesSDKAppKey :self.controller];
RainbowSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
RainbowSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[RainbowAllManager RainbowInstance]RainbowDengLu:RainbowSDKAppId :RainbowSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *HeroesSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[HeroesXinXi getInstance]openId];
loginInfo.sign = [[HeroesXinXi getInstance] token];
loginInfo.timestamp = [[HeroesXinXi getInstance] timestamp];
loginInfo.openId = [[RainbowXinXi getInstance]openId];
loginInfo.sign = [[RainbowXinXi getInstance] token];
loginInfo.timestamp = [[RainbowXinXi getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *HeroesSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HeroesCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"RainbowCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *HeroesSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HeroesAllManager HeroesInstance] HeroesCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[RainbowAllManager RainbowInstance] RainbowCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[HeroesAllManager HeroesInstance] HeroesCKQueryOperation:self.controller HeroesHuoWuID:products HeroesJiaGe:[payInfo postAmount] HeroesHuoWuMing:[payInfo productName] HeroesDingDanHao:queryId];
[[RainbowAllManager RainbowInstance] RainbowCKQueryOperation:self.controller RainbowHuoWuID:products RainbowJiaGe:[payInfo postAmount] RainbowHuoWuMing:[payInfo productName] RainbowDingDanHao:queryId];
}
}
......