lizhihui

更新0926 添加server name

Showing 45 changed files with 205 additions and 204 deletions
No preview for this file type
No preview for this file type
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ClancyAllManager : NSObject
{
NSString* ClancyCKAPPID_;
NSString* ClancyCKAPPKEY_;
NSString* ClancyInviterCode_;
}
@property bool ClancyGeiWoHuaQianBa;
+ (ClancyAllManager *)ClancyInstance;
- (void)ClancyChuShiHua;
- (void)ClancyDengLu:(NSString *)ClancyCKAPPID : (NSString *)ClancyCKAPPKEY : (UIViewController *)controller;
- (void)ClancyYangShi:(NSString*)ClancyLeiXing;
- (void)ClancyCKQuery: (NSString *)ClancyFuWuQiID : (NSString *)ClancyNickName : (NSNumber *)ClancyAmount : (NSString *)ClancyCallBack : (UIViewController *)controller : (NSString *)ClancyServerName;
- (void)ClancyCKQueryOperation:(UIViewController*)controll ClancyHuoWuID:(NSString*)products ClancyJiaGe:(NSString*)amount ClancyHuoWuMing:(NSString*)productName ClancyDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface RainbowDiZhi : NSObject
@interface ClancyDiZhi : NSObject
+ (NSString *)RainbowSKCloudServiceSetupOptionsKey;
+ (NSString *)ClancySKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const ClancyCKAssetsExitNotification;
extern NSString * const ClancyCKAssetsLoginNotification;
extern NSString * const ClancyCKAssetsErrorNotification;
@interface ClancyHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface ClancyIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ClancyDingDanHao;
@property(nonatomic,strong) NSDictionary* ClancyHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ClancyHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ClancyHuoWuLieBiaoView;
- (void)ClancyHuaQianView:(UIViewController*)controller ClancyHuoWuD:(NSString*)products ClancyQian:(NSString*)amount ClancyHuoWuMing:(NSString*)productName ClancyDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "RainbowXinXi.h"
#import "ClancyXinXi.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface RainbowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ClancyMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL RainbowYouYuanJiao;
@property(assign) BOOL ClancyYouYuanJiao;
- (void)RainbowSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)RainbowChuShiHuaWebView;
- (void)ClancySettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ClancyChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface ClancyMsgJM : NSObject
+(NSString *)ClancyJM:(NSString *)jm;
+(void)ClancyEmptyqweS12Jijis;
+(void)ClancyEmptyjqw3123eakdjl;
+(void)ClancyEmptynqw123evcxnklr;
-(void)ClancyEmptyasqw123edll;
-(void)ClancyEmptyasqw12312edlasdl;
-(void)ClancyEmptyasdq3123wellasd;
+(void)ClancyEmptyain;
-(void)ClancyEmptybua3in;
+(void)ClancyEmptya3in;
-(void)ClancyEmptybu2ain;
+(void)ClancyEmptyai2n;
-(void)ClancyEmptybu1ain;
@end
#import <Foundation/Foundation.h>
@interface RainbowXinXi : NSObject
@interface ClancyXinXi : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (RainbowXinXi *)getInstance;
+ (ClancyXinXi *)getInstance;
@end
......
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; };
26905EC52148C25D00A830F1 /* RainbowSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26905EC42148C25C00A830F1 /* RainbowSDK.framework */; };
2638DD79215A3FE1006540CB /* ClancySDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2638DD78215A3FE1006540CB /* ClancySDK.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>"; };
26905EC42148C25C00A830F1 /* RainbowSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = RainbowSDK.framework; sourceTree = "<group>"; };
2638DD78215A3FE1006540CB /* ClancySDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = ClancySDK.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,9 +105,9 @@
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 */,
2638DD79215A3FE1006540CB /* ClancySDK.framework in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
......@@ -144,7 +144,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26905EC42148C25C00A830F1 /* RainbowSDK.framework */,
2638DD78215A3FE1006540CB /* ClancySDK.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......
......@@ -95,17 +95,18 @@
- (IBAction)actionPay:(id)sender {
PoolCreateOrderInfo *payInfo = [[PoolCreateOrderInfo alloc]init];
[payInfo setServerId:@"28"];
[payInfo setPlayerName:@"playName"];
[payInfo setServerId:@"99887766"];
[payInfo setPlayerName:@"iamrolename"];
[payInfo setPlayerLevel:@"10"];
[payInfo setUserId:@"123456"];
[payInfo setPostAmount:@"6"];
[payInfo setPostAmount:@"1"];
[payInfo setProductId:@"com.xiongdi.xunqinji.6"];
[payInfo setPlayerId:@"1231241234"];
[payInfo setProductName:@"com.xiongdi.xunqinji.6"];
[payInfo setProductDesc:@"productDes"];
[payInfo setTimestamp:@"1232134"];
[payInfo setExchange:@"10"];
[payInfo setServerName:@"servername"];
[payInfo setCustom:@"custom"];
[[PoolSdk shareSDK] gzyazfWithGzyazfmentInfo:payInfo];
}
......
#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 <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 <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
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "RainbowSDK/RainbowAllManager.h"
#import "RainbowSDK/RainbowHuiTiaoNotification.h"
#import "RainbowSDK/RainbowXinXi.h"
#import "ClancySDK/ClancyAllManager.h"
#import "ClancySDK/ClancyHuiTiaoNotification.h"
#import "ClancySDK/ClancyXinXi.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *RainbowSDKAppId;
NSString *RainbowSDKAppKey;
NSString *ClancySDKAppId;
NSString *ClancySDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *RainbowSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[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];
[[ClancyAllManager ClancyInstance]ClancyChuShiHua];
[[ClancyAllManager ClancyInstance]ClancyYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ClancyCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ClancyCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *RainbowSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
RainbowSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
RainbowSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[RainbowAllManager RainbowInstance]RainbowDengLu:RainbowSDKAppId :RainbowSDKAppKey :self.controller];
ClancySDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ClancySDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ClancyAllManager ClancyInstance]ClancyDengLu:ClancySDKAppId :ClancySDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *RainbowSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[RainbowXinXi getInstance]openId];
loginInfo.sign = [[RainbowXinXi getInstance] token];
loginInfo.timestamp = [[RainbowXinXi getInstance] timestamp];
loginInfo.openId = [[ClancyXinXi getInstance]openId];
loginInfo.sign = [[ClancyXinXi getInstance] token];
loginInfo.timestamp = [[ClancyXinXi getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *RainbowSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"RainbowCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ClancyCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *RainbowSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[RainbowAllManager RainbowInstance] RainbowCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[ClancyAllManager ClancyInstance] ClancyCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[RainbowAllManager RainbowInstance] RainbowCKQueryOperation:self.controller RainbowHuoWuID:products RainbowJiaGe:[payInfo postAmount] RainbowHuoWuMing:[payInfo productName] RainbowDingDanHao:queryId];
[[ClancyAllManager ClancyInstance] ClancyCKQueryOperation:self.controller ClancyHuoWuID:products ClancyJiaGe:[payInfo postAmount] ClancyHuoWuMing:[payInfo productName] ClancyDingDanHao:queryId];
}
}
......
新接入请参考对接文档和demo<br>
2018-09-12:<br>
2018-09-26:<br>
在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br>
1、``` 删除pool_file文件夹中DivisionSDK.framework或者OtakusSDK.framework ``` <br>
2、引入 ``` RainbowSDK.framework ``` <br>
1、``` 删除pool_file文件夹中DivisionSDK.framework或者RainbowSDK.framework ``` <br>
2、引入 ``` ClancySDK.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br>
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ClancyAllManager : NSObject
{
NSString* ClancyCKAPPID_;
NSString* ClancyCKAPPKEY_;
NSString* ClancyInviterCode_;
}
@property bool ClancyGeiWoHuaQianBa;
+ (ClancyAllManager *)ClancyInstance;
- (void)ClancyChuShiHua;
- (void)ClancyDengLu:(NSString *)ClancyCKAPPID : (NSString *)ClancyCKAPPKEY : (UIViewController *)controller;
- (void)ClancyYangShi:(NSString*)ClancyLeiXing;
- (void)ClancyCKQuery: (NSString *)ClancyFuWuQiID : (NSString *)ClancyNickName : (NSNumber *)ClancyAmount : (NSString *)ClancyCallBack : (UIViewController *)controller : (NSString *)ClancyServerName;
- (void)ClancyCKQueryOperation:(UIViewController*)controll ClancyHuoWuID:(NSString*)products ClancyJiaGe:(NSString*)amount ClancyHuoWuMing:(NSString*)productName ClancyDingDanHao:(NSString*) DingDanHao;
@end
#import <UIKit/UIKit.h>
@interface RainbowDiZhi : NSObject
@interface ClancyDiZhi : NSObject
+ (NSString *)RainbowSKCloudServiceSetupOptionsKey;
+ (NSString *)ClancySKCloudServiceSetupOptionsKey;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const ClancyCKAssetsExitNotification;
extern NSString * const ClancyCKAssetsLoginNotification;
extern NSString * const ClancyCKAssetsErrorNotification;
@interface ClancyHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface ClancyIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ClancyDingDanHao;
@property(nonatomic,strong) NSDictionary* ClancyHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ClancyHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ClancyHuoWuLieBiaoView;
- (void)ClancyHuaQianView:(UIViewController*)controller ClancyHuoWuD:(NSString*)products ClancyQian:(NSString*)amount ClancyHuoWuMing:(NSString*)productName ClancyDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "RainbowXinXi.h"
#import "ClancyXinXi.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface RainbowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ClancyMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL RainbowYouYuanJiao;
@property(assign) BOOL ClancyYouYuanJiao;
- (void)RainbowSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)RainbowChuShiHuaWebView;
- (void)ClancySettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ClancyChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface ClancyMsgJM : NSObject
+(NSString *)ClancyJM:(NSString *)jm;
+(void)ClancyEmptyqweS12Jijis;
+(void)ClancyEmptyjqw3123eakdjl;
+(void)ClancyEmptynqw123evcxnklr;
-(void)ClancyEmptyasqw123edll;
-(void)ClancyEmptyasqw12312edlasdl;
-(void)ClancyEmptyasdq3123wellasd;
+(void)ClancyEmptyain;
-(void)ClancyEmptybua3in;
+(void)ClancyEmptya3in;
-(void)ClancyEmptybu2ain;
+(void)ClancyEmptyai2n;
-(void)ClancyEmptybu1ain;
@end
#import <Foundation/Foundation.h>
@interface RainbowXinXi : NSObject
@interface ClancyXinXi : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (RainbowXinXi *)getInstance;
+ (ClancyXinXi *)getInstance;
@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 <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 <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
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "RainbowSDK/RainbowAllManager.h"
#import "RainbowSDK/RainbowHuiTiaoNotification.h"
#import "RainbowSDK/RainbowXinXi.h"
#import "ClancySDK/ClancyAllManager.h"
#import "ClancySDK/ClancyHuiTiaoNotification.h"
#import "ClancySDK/ClancyXinXi.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *RainbowSDKAppId;
NSString *RainbowSDKAppKey;
NSString *ClancySDKAppId;
NSString *ClancySDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *RainbowSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[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];
[[ClancyAllManager ClancyInstance]ClancyChuShiHua];
[[ClancyAllManager ClancyInstance]ClancyYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ClancyCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ClancyCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *RainbowSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
RainbowSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
RainbowSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[RainbowAllManager RainbowInstance]RainbowDengLu:RainbowSDKAppId :RainbowSDKAppKey :self.controller];
ClancySDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ClancySDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ClancyAllManager ClancyInstance]ClancyDengLu:ClancySDKAppId :ClancySDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *RainbowSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[RainbowXinXi getInstance]openId];
loginInfo.sign = [[RainbowXinXi getInstance] token];
loginInfo.timestamp = [[RainbowXinXi getInstance] timestamp];
loginInfo.openId = [[ClancyXinXi getInstance]openId];
loginInfo.sign = [[ClancyXinXi getInstance] token];
loginInfo.timestamp = [[ClancyXinXi getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *RainbowSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"RainbowCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ClancyCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *RainbowSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[RainbowAllManager RainbowInstance] RainbowCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[ClancyAllManager ClancyInstance] ClancyCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[RainbowAllManager RainbowInstance] RainbowCKQueryOperation:self.controller RainbowHuoWuID:products RainbowJiaGe:[payInfo postAmount] RainbowHuoWuMing:[payInfo productName] RainbowDingDanHao:queryId];
[[ClancyAllManager ClancyInstance] ClancyCKQueryOperation:self.controller ClancyHuoWuID:products ClancyJiaGe:[payInfo postAmount] ClancyHuoWuMing:[payInfo productName] ClancyDingDanHao:queryId];
}
}
......