Showing
45 changed files
with
205 additions
and
204 deletions
No preview for this file type
No preview for this file type
No preview for this file type
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface ClancyAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* ClancyCKAPPID_; | ||
7 | + NSString* ClancyCKAPPKEY_; | ||
8 | + | ||
9 | + NSString* ClancyInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool ClancyGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (ClancyAllManager *)ClancyInstance; | ||
15 | + | ||
16 | +- (void)ClancyChuShiHua; | ||
17 | + | ||
18 | +- (void)ClancyDengLu:(NSString *)ClancyCKAPPID : (NSString *)ClancyCKAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)ClancyYangShi:(NSString*)ClancyLeiXing; | ||
21 | + | ||
22 | +- (void)ClancyCKQuery: (NSString *)ClancyFuWuQiID : (NSString *)ClancyNickName : (NSNumber *)ClancyAmount : (NSString *)ClancyCallBack : (UIViewController *)controller : (NSString *)ClancyServerName; | ||
23 | + | ||
24 | +- (void)ClancyCKQueryOperation:(UIViewController*)controll ClancyHuoWuID:(NSString*)products ClancyJiaGe:(NSString*)amount ClancyHuoWuMing:(NSString*)productName ClancyDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface ClancyIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* ClancyDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* ClancyHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* ClancyHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *ClancyHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)ClancyHuaQianView:(UIViewController*)controller ClancyHuoWuD:(NSString*)products ClancyQian:(NSString*)amount ClancyHuoWuMing:(NSString*)productName ClancyDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "RainbowXinXi.h" | 2 | +#import "ClancyXinXi.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface RainbowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface ClancyMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
6 | { | 6 | { |
7 | UIWebView *webView_; | 7 | UIWebView *webView_; |
8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
9 | } | 9 | } |
10 | 10 | ||
11 | -@property(assign) BOOL RainbowYouYuanJiao; | 11 | +@property(assign) BOOL ClancyYouYuanJiao; |
12 | 12 | ||
13 | -- (void)RainbowSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)ClancySettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)RainbowChuShiHuaWebView; | 14 | +- (void)ClancyChuShiHuaWebView; |
15 | - (void)loadWebPageWithString:(NSString *)url; | 15 | - (void)loadWebPageWithString:(NSString *)url; |
16 | - (void)loadWebPageWithJs:(NSString *)content; | 16 | - (void)loadWebPageWithJs:(NSString *)content; |
17 | - (void)postNotification:(NSString *)name : (NSString *)code; | 17 | - (void)postNotification:(NSString *)name : (NSString *)code; | ... | ... |
1 | +#import <Foundation/Foundation.h> | ||
2 | + | ||
3 | +@interface ClancyMsgJM : NSObject | ||
4 | + | ||
5 | ++(NSString *)ClancyJM:(NSString *)jm; | ||
6 | + | ||
7 | ++(void)ClancyEmptyqweS12Jijis; | ||
8 | ++(void)ClancyEmptyjqw3123eakdjl; | ||
9 | ++(void)ClancyEmptynqw123evcxnklr; | ||
10 | +-(void)ClancyEmptyasqw123edll; | ||
11 | +-(void)ClancyEmptyasqw12312edlasdl; | ||
12 | +-(void)ClancyEmptyasdq3123wellasd; | ||
13 | ++(void)ClancyEmptyain; | ||
14 | +-(void)ClancyEmptybua3in; | ||
15 | ++(void)ClancyEmptya3in; | ||
16 | +-(void)ClancyEmptybu2ain; | ||
17 | ++(void)ClancyEmptyai2n; | ||
18 | +-(void)ClancyEmptybu1ain; | ||
19 | + | ||
20 | +@end |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | 2 | ||
3 | -@interface RainbowXinXi : NSObject | 3 | +@interface ClancyXinXi : NSObject |
4 | { | 4 | { |
5 | // | 5 | // |
6 | NSString *openId; | 6 | NSString *openId; |
... | @@ -12,5 +12,5 @@ NSString *timestamp; | ... | @@ -12,5 +12,5 @@ NSString *timestamp; |
12 | @property(retain,nonatomic) NSString *openId; | 12 | @property(retain,nonatomic) NSString *openId; |
13 | @property(retain,nonatomic) NSString *token; | 13 | @property(retain,nonatomic) NSString *token; |
14 | @property(retain,nonatomic) NSString *timestamp; | 14 | @property(retain,nonatomic) NSString *timestamp; |
15 | -+ (RainbowXinXi *)getInstance; | 15 | ++ (ClancyXinXi *)getInstance; |
16 | @end | 16 | @end | ... | ... |
No preview for this file type
... | @@ -8,7 +8,7 @@ | ... | @@ -8,7 +8,7 @@ |
8 | 8 | ||
9 | /* Begin PBXBuildFile section */ | 9 | /* Begin PBXBuildFile section */ |
10 | 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; }; | 10 | 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; }; |
11 | - 26905EC52148C25D00A830F1 /* RainbowSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26905EC42148C25C00A830F1 /* RainbowSDK.framework */; }; | 11 | + 2638DD79215A3FE1006540CB /* ClancySDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2638DD78215A3FE1006540CB /* ClancySDK.framework */; }; |
12 | 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; | 12 | 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; |
13 | 846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; }; | 13 | 846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; }; |
14 | 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; }; | 14 | 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; }; |
... | @@ -61,7 +61,7 @@ | ... | @@ -61,7 +61,7 @@ |
61 | 61 | ||
62 | /* Begin PBXFileReference section */ | 62 | /* Begin PBXFileReference section */ |
63 | 260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; | 63 | 260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; |
64 | - 26905EC42148C25C00A830F1 /* RainbowSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = RainbowSDK.framework; sourceTree = "<group>"; }; | 64 | + 2638DD78215A3FE1006540CB /* ClancySDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = ClancySDK.framework; sourceTree = "<group>"; }; |
65 | 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; | 65 | 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; |
66 | 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; | 66 | 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; |
67 | 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; }; | 67 | 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; }; |
... | @@ -105,9 +105,9 @@ | ... | @@ -105,9 +105,9 @@ |
105 | files = ( | 105 | files = ( |
106 | 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, | 106 | 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, |
107 | 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, | 107 | 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, |
108 | - 26905EC52148C25D00A830F1 /* RainbowSDK.framework in Frameworks */, | ||
109 | 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, | 108 | 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, |
110 | 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, | 109 | 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, |
110 | + 2638DD79215A3FE1006540CB /* ClancySDK.framework in Frameworks */, | ||
111 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, | 111 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, |
112 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, | 112 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, |
113 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, | 113 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, |
... | @@ -144,7 +144,7 @@ | ... | @@ -144,7 +144,7 @@ |
144 | 8476DF641C4DD71D00EC42BA /* poolsdk */ = { | 144 | 8476DF641C4DD71D00EC42BA /* poolsdk */ = { |
145 | isa = PBXGroup; | 145 | isa = PBXGroup; |
146 | children = ( | 146 | children = ( |
147 | - 26905EC42148C25C00A830F1 /* RainbowSDK.framework */, | 147 | + 2638DD78215A3FE1006540CB /* ClancySDK.framework */, |
148 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, | 148 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, |
149 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, | 149 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, |
150 | 846BD21F1EE9342700E89A1D /* pool_setting */, | 150 | 846BD21F1EE9342700E89A1D /* pool_setting */, | ... | ... |
No preview for this file type
... | @@ -95,17 +95,18 @@ | ... | @@ -95,17 +95,18 @@ |
95 | 95 | ||
96 | - (IBAction)actionPay:(id)sender { | 96 | - (IBAction)actionPay:(id)sender { |
97 | PoolCreateOrderInfo *payInfo = [[PoolCreateOrderInfo alloc]init]; | 97 | PoolCreateOrderInfo *payInfo = [[PoolCreateOrderInfo alloc]init]; |
98 | - [payInfo setServerId:@"28"]; | 98 | + [payInfo setServerId:@"99887766"]; |
99 | - [payInfo setPlayerName:@"playName"]; | 99 | + [payInfo setPlayerName:@"iamrolename"]; |
100 | [payInfo setPlayerLevel:@"10"]; | 100 | [payInfo setPlayerLevel:@"10"]; |
101 | [payInfo setUserId:@"123456"]; | 101 | [payInfo setUserId:@"123456"]; |
102 | - [payInfo setPostAmount:@"6"]; | 102 | + [payInfo setPostAmount:@"1"]; |
103 | [payInfo setProductId:@"com.xiongdi.xunqinji.6"]; | 103 | [payInfo setProductId:@"com.xiongdi.xunqinji.6"]; |
104 | [payInfo setPlayerId:@"1231241234"]; | 104 | [payInfo setPlayerId:@"1231241234"]; |
105 | [payInfo setProductName:@"com.xiongdi.xunqinji.6"]; | 105 | [payInfo setProductName:@"com.xiongdi.xunqinji.6"]; |
106 | [payInfo setProductDesc:@"productDes"]; | 106 | [payInfo setProductDesc:@"productDes"]; |
107 | [payInfo setTimestamp:@"1232134"]; | 107 | [payInfo setTimestamp:@"1232134"]; |
108 | [payInfo setExchange:@"10"]; | 108 | [payInfo setExchange:@"10"]; |
109 | + [payInfo setServerName:@"servername"]; | ||
109 | [payInfo setCustom:@"custom"]; | 110 | [payInfo setCustom:@"custom"]; |
110 | [[PoolSdk shareSDK] gzyazfWithGzyazfmentInfo:payInfo]; | 111 | [[PoolSdk shareSDK] gzyazfWithGzyazfmentInfo:payInfo]; |
111 | } | 112 | } | ... | ... |
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface RainbowAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* RainbowCKAPPID_; | ||
7 | - NSString* RainbowCKAPPKEY_; | ||
8 | - | ||
9 | - NSString* RainbowInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool RainbowGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (RainbowAllManager *)RainbowInstance; | ||
15 | - | ||
16 | -- (void)RainbowChuShiHua; | ||
17 | - | ||
18 | -- (void)RainbowDengLu:(NSString *)RainbowCKAPPID : (NSString *)RainbowCKAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)RainbowYangShi:(NSString*)RainbowLeiXing; | ||
21 | - | ||
22 | -- (void)RainbowCKQuery: (NSString *)RainbowFuWuQiID : (NSString *)RainbowNickName : (NSNumber *)RainbowAmount : (NSString *)RainbowCallBack : (UIViewController *)controller; | ||
23 | - | ||
24 | -- (void)RainbowCKQueryOperation:(UIViewController*)controll RainbowHuoWuID:(NSString*)products RainbowJiaGe:(NSString*)amount RainbowHuoWuMing:(NSString*)productName RainbowDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface RainbowIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* RainbowDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* RainbowHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* RainbowHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *RainbowHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)RainbowHuaQianView:(UIViewController*)controller RainbowHuoWuD:(NSString*)products RainbowQian:(NSString*)amount RainbowHuoWuMing:(NSString*)productName RainbowDingDanHao:(NSString*)DingDanHao; | ||
11 | - | ||
12 | -@end |
1 | -#import <Foundation/Foundation.h> | ||
2 | - | ||
3 | -@interface RainbowMsgJM : NSObject | ||
4 | - | ||
5 | -+(NSString *)RainbowJM:(NSString *)jm; | ||
6 | - | ||
7 | -+(void)RainbowEmptyqweS12Jijis; | ||
8 | -+(void)RainbowEmptyjqw3123eakdjl; | ||
9 | -+(void)RainbowEmptynqw123evcxnklr; | ||
10 | --(void)RainbowEmptyasqw123edll; | ||
11 | --(void)RainbowEmptyasqw12312edlasdl; | ||
12 | --(void)RainbowEmptyasdq3123wellasd; | ||
13 | -+(void)RainbowEmptyain; | ||
14 | --(void)RainbowEmptybua3in; | ||
15 | -+(void)RainbowEmptya3in; | ||
16 | --(void)RainbowEmptybu2ain; | ||
17 | -+(void)RainbowEmptyai2n; | ||
18 | --(void)RainbowEmptybu1ain; | ||
19 | - | ||
20 | -@end |
1 | #include "SDKInterface.h" | 1 | #include "SDKInterface.h" |
2 | #import <UIKit/UIKit.h> | 2 | #import <UIKit/UIKit.h> |
3 | 3 | ||
4 | -#import "RainbowSDK/RainbowAllManager.h" | 4 | +#import "ClancySDK/ClancyAllManager.h" |
5 | -#import "RainbowSDK/RainbowHuiTiaoNotification.h" | 5 | +#import "ClancySDK/ClancyHuiTiaoNotification.h" |
6 | -#import "RainbowSDK/RainbowXinXi.h" | 6 | +#import "ClancySDK/ClancyXinXi.h" |
7 | 7 | ||
8 | #import "TrackingIO.h" | 8 | #import "TrackingIO.h" |
9 | 9 | ||
10 | @implementation SDKInterface : Interface | 10 | @implementation SDKInterface : Interface |
11 | 11 | ||
12 | int mExchange; | 12 | int mExchange; |
13 | -NSString *RainbowSDKAppId; | 13 | +NSString *ClancySDKAppId; |
14 | -NSString *RainbowSDKAppKey; | 14 | +NSString *ClancySDKAppKey; |
15 | 15 | ||
16 | - (void)SDKinit:(UIViewController *) control | 16 | - (void)SDKinit:(UIViewController *) control |
17 | { | 17 | { |
... | @@ -19,10 +19,10 @@ NSString *RainbowSDKAppKey; | ... | @@ -19,10 +19,10 @@ NSString *RainbowSDKAppKey; |
19 | [super SDKinit:control]; | 19 | [super SDKinit:control]; |
20 | 20 | ||
21 | [PoolConfig getInstance]; | 21 | [PoolConfig getInstance]; |
22 | - [[RainbowAllManager RainbowInstance]RainbowChuShiHua]; | 22 | + [[ClancyAllManager ClancyInstance]ClancyChuShiHua]; |
23 | - [[RainbowAllManager RainbowInstance]RainbowYangShi:@"sdk"]; | 23 | + [[ClancyAllManager ClancyInstance]ClancyYangShi:@"sdk"]; |
24 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RainbowCKAssetsLoginNotification object:nil]; | 24 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ClancyCKAssetsLoginNotification object:nil]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RainbowCKAssetsToolCallBack" object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ClancyCKAssetsToolCallBack" object:nil]; |
26 | 26 | ||
27 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 27 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
28 | 28 | ||
... | @@ -39,9 +39,9 @@ NSString *RainbowSDKAppKey; | ... | @@ -39,9 +39,9 @@ NSString *RainbowSDKAppKey; |
39 | - (void)SDKloginSDK | 39 | - (void)SDKloginSDK |
40 | { | 40 | { |
41 | //APPID APPKEY | 41 | //APPID APPKEY |
42 | - RainbowSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; | 42 | + ClancySDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; |
43 | - RainbowSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; | 43 | + ClancySDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; |
44 | - [[RainbowAllManager RainbowInstance]RainbowDengLu:RainbowSDKAppId :RainbowSDKAppKey :self.controller]; | 44 | + [[ClancyAllManager ClancyInstance]ClancyDengLu:ClancySDKAppId :ClancySDKAppKey :self.controller]; |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
... | @@ -52,9 +52,9 @@ NSString *RainbowSDKAppKey; | ... | @@ -52,9 +52,9 @@ NSString *RainbowSDKAppKey; |
52 | { | 52 | { |
53 | NSLog(@"loginchek"); | 53 | NSLog(@"loginchek"); |
54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; | 54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; |
55 | - loginInfo.openId = [[RainbowXinXi getInstance]openId]; | 55 | + loginInfo.openId = [[ClancyXinXi getInstance]openId]; |
56 | - loginInfo.sign = [[RainbowXinXi getInstance] token]; | 56 | + loginInfo.sign = [[ClancyXinXi getInstance] token]; |
57 | - loginInfo.timestamp = [[RainbowXinXi getInstance] timestamp]; | 57 | + loginInfo.timestamp = [[ClancyXinXi getInstance] timestamp]; |
58 | 58 | ||
59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
60 | [[PoolChecker getInstance] startCheck:loginInfo]; | 60 | [[PoolChecker getInstance] startCheck:loginInfo]; |
... | @@ -82,7 +82,7 @@ NSString *RainbowSDKAppKey; | ... | @@ -82,7 +82,7 @@ NSString *RainbowSDKAppKey; |
82 | { | 82 | { |
83 | NSDictionary* payResultDic = notification.object; | 83 | NSDictionary* payResultDic = notification.object; |
84 | 84 | ||
85 | - NSString* receiptStr = [payResultDic objectForKey:@"RainbowCKAssetsToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"ClancyCKAssetsToolResult"]; |
86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
87 | 87 | ||
88 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 88 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
... | @@ -216,10 +216,10 @@ NSString *RainbowSDKAppKey; | ... | @@ -216,10 +216,10 @@ NSString *RainbowSDKAppKey; |
216 | NSString *other = [payInfo other]; | 216 | NSString *other = [payInfo other]; |
217 | 217 | ||
218 | if (other && [other length] > 0) { | 218 | if (other && [other length] > 0) { |
219 | - [[RainbowAllManager RainbowInstance] RainbowCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller]; | 219 | + [[ClancyAllManager ClancyInstance] ClancyCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
220 | }else{ | 220 | }else{ |
221 | NSString* products = [payInfo products]; | 221 | NSString* products = [payInfo products]; |
222 | - [[RainbowAllManager RainbowInstance] RainbowCKQueryOperation:self.controller RainbowHuoWuID:products RainbowJiaGe:[payInfo postAmount] RainbowHuoWuMing:[payInfo productName] RainbowDingDanHao:queryId]; | 222 | + [[ClancyAllManager ClancyInstance] ClancyCKQueryOperation:self.controller ClancyHuoWuID:products ClancyJiaGe:[payInfo postAmount] ClancyHuoWuMing:[payInfo productName] ClancyDingDanHao:queryId]; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ... | ... |
1 | 新接入请参考对接文档和demo<br> | 1 | 新接入请参考对接文档和demo<br> |
2 | 2 | ||
3 | -2018-09-12:<br> | 3 | +2018-09-26:<br> |
4 | 在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br> | 4 | 在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br> |
5 | -1、``` 删除pool_file文件夹中DivisionSDK.framework或者OtakusSDK.framework ``` <br> | 5 | +1、``` 删除pool_file文件夹中DivisionSDK.framework或者RainbowSDK.framework ``` <br> |
6 | -2、引入 ``` RainbowSDK.framework ``` <br> | 6 | +2、引入 ``` ClancySDK.framework ``` <br> |
7 | 3、替换 ``` SDKInterface.m文件 ``` <br> | 7 | 3、替换 ``` SDKInterface.m文件 ``` <br> |
8 | 8 | ||
9 | 2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br> | 9 | 2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br> | ... | ... |
No preview for this file type
No preview for this file type
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface ClancyAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* ClancyCKAPPID_; | ||
7 | + NSString* ClancyCKAPPKEY_; | ||
8 | + | ||
9 | + NSString* ClancyInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool ClancyGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (ClancyAllManager *)ClancyInstance; | ||
15 | + | ||
16 | +- (void)ClancyChuShiHua; | ||
17 | + | ||
18 | +- (void)ClancyDengLu:(NSString *)ClancyCKAPPID : (NSString *)ClancyCKAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)ClancyYangShi:(NSString*)ClancyLeiXing; | ||
21 | + | ||
22 | +- (void)ClancyCKQuery: (NSString *)ClancyFuWuQiID : (NSString *)ClancyNickName : (NSNumber *)ClancyAmount : (NSString *)ClancyCallBack : (UIViewController *)controller : (NSString *)ClancyServerName; | ||
23 | + | ||
24 | +- (void)ClancyCKQueryOperation:(UIViewController*)controll ClancyHuoWuID:(NSString*)products ClancyJiaGe:(NSString*)amount ClancyHuoWuMing:(NSString*)productName ClancyDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface ClancyIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* ClancyDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* ClancyHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* ClancyHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *ClancyHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)ClancyHuaQianView:(UIViewController*)controller ClancyHuoWuD:(NSString*)products ClancyQian:(NSString*)amount ClancyHuoWuMing:(NSString*)productName ClancyDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "RainbowXinXi.h" | 2 | +#import "ClancyXinXi.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface RainbowMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface ClancyMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> |
6 | { | 6 | { |
7 | UIWebView *webView_; | 7 | UIWebView *webView_; |
8 | UIActivityIndicatorView *activityIndicator; | 8 | UIActivityIndicatorView *activityIndicator; |
9 | } | 9 | } |
10 | 10 | ||
11 | -@property(assign) BOOL RainbowYouYuanJiao; | 11 | +@property(assign) BOOL ClancyYouYuanJiao; |
12 | 12 | ||
13 | -- (void)RainbowSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)ClancySettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)RainbowChuShiHuaWebView; | 14 | +- (void)ClancyChuShiHuaWebView; |
15 | - (void)loadWebPageWithString:(NSString *)url; | 15 | - (void)loadWebPageWithString:(NSString *)url; |
16 | - (void)loadWebPageWithJs:(NSString *)content; | 16 | - (void)loadWebPageWithJs:(NSString *)content; |
17 | - (void)postNotification:(NSString *)name : (NSString *)code; | 17 | - (void)postNotification:(NSString *)name : (NSString *)code; | ... | ... |
1 | +#import <Foundation/Foundation.h> | ||
2 | + | ||
3 | +@interface ClancyMsgJM : NSObject | ||
4 | + | ||
5 | ++(NSString *)ClancyJM:(NSString *)jm; | ||
6 | + | ||
7 | ++(void)ClancyEmptyqweS12Jijis; | ||
8 | ++(void)ClancyEmptyjqw3123eakdjl; | ||
9 | ++(void)ClancyEmptynqw123evcxnklr; | ||
10 | +-(void)ClancyEmptyasqw123edll; | ||
11 | +-(void)ClancyEmptyasqw12312edlasdl; | ||
12 | +-(void)ClancyEmptyasdq3123wellasd; | ||
13 | ++(void)ClancyEmptyain; | ||
14 | +-(void)ClancyEmptybua3in; | ||
15 | ++(void)ClancyEmptya3in; | ||
16 | +-(void)ClancyEmptybu2ain; | ||
17 | ++(void)ClancyEmptyai2n; | ||
18 | +-(void)ClancyEmptybu1ain; | ||
19 | + | ||
20 | +@end |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | 2 | ||
3 | -@interface RainbowXinXi : NSObject | 3 | +@interface ClancyXinXi : NSObject |
4 | { | 4 | { |
5 | // | 5 | // |
6 | NSString *openId; | 6 | NSString *openId; |
... | @@ -12,5 +12,5 @@ NSString *timestamp; | ... | @@ -12,5 +12,5 @@ NSString *timestamp; |
12 | @property(retain,nonatomic) NSString *openId; | 12 | @property(retain,nonatomic) NSString *openId; |
13 | @property(retain,nonatomic) NSString *token; | 13 | @property(retain,nonatomic) NSString *token; |
14 | @property(retain,nonatomic) NSString *timestamp; | 14 | @property(retain,nonatomic) NSString *timestamp; |
15 | -+ (RainbowXinXi *)getInstance; | 15 | ++ (ClancyXinXi *)getInstance; |
16 | @end | 16 | @end | ... | ... |
No preview for this file type
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface RainbowAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* RainbowCKAPPID_; | ||
7 | - NSString* RainbowCKAPPKEY_; | ||
8 | - | ||
9 | - NSString* RainbowInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool RainbowGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (RainbowAllManager *)RainbowInstance; | ||
15 | - | ||
16 | -- (void)RainbowChuShiHua; | ||
17 | - | ||
18 | -- (void)RainbowDengLu:(NSString *)RainbowCKAPPID : (NSString *)RainbowCKAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)RainbowYangShi:(NSString*)RainbowLeiXing; | ||
21 | - | ||
22 | -- (void)RainbowCKQuery: (NSString *)RainbowFuWuQiID : (NSString *)RainbowNickName : (NSNumber *)RainbowAmount : (NSString *)RainbowCallBack : (UIViewController *)controller; | ||
23 | - | ||
24 | -- (void)RainbowCKQueryOperation:(UIViewController*)controll RainbowHuoWuID:(NSString*)products RainbowJiaGe:(NSString*)amount RainbowHuoWuMing:(NSString*)productName RainbowDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface RainbowIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* RainbowDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* RainbowHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* RainbowHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *RainbowHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)RainbowHuaQianView:(UIViewController*)controller RainbowHuoWuD:(NSString*)products RainbowQian:(NSString*)amount RainbowHuoWuMing:(NSString*)productName RainbowDingDanHao:(NSString*)DingDanHao; | ||
11 | - | ||
12 | -@end |
1 | -#import <Foundation/Foundation.h> | ||
2 | - | ||
3 | -@interface RainbowMsgJM : NSObject | ||
4 | - | ||
5 | -+(NSString *)RainbowJM:(NSString *)jm; | ||
6 | - | ||
7 | -+(void)RainbowEmptyqweS12Jijis; | ||
8 | -+(void)RainbowEmptyjqw3123eakdjl; | ||
9 | -+(void)RainbowEmptynqw123evcxnklr; | ||
10 | --(void)RainbowEmptyasqw123edll; | ||
11 | --(void)RainbowEmptyasqw12312edlasdl; | ||
12 | --(void)RainbowEmptyasdq3123wellasd; | ||
13 | -+(void)RainbowEmptyain; | ||
14 | --(void)RainbowEmptybua3in; | ||
15 | -+(void)RainbowEmptya3in; | ||
16 | --(void)RainbowEmptybu2ain; | ||
17 | -+(void)RainbowEmptyai2n; | ||
18 | --(void)RainbowEmptybu1ain; | ||
19 | - | ||
20 | -@end |
1 | #include "SDKInterface.h" | 1 | #include "SDKInterface.h" |
2 | #import <UIKit/UIKit.h> | 2 | #import <UIKit/UIKit.h> |
3 | 3 | ||
4 | -#import "RainbowSDK/RainbowAllManager.h" | 4 | +#import "ClancySDK/ClancyAllManager.h" |
5 | -#import "RainbowSDK/RainbowHuiTiaoNotification.h" | 5 | +#import "ClancySDK/ClancyHuiTiaoNotification.h" |
6 | -#import "RainbowSDK/RainbowXinXi.h" | 6 | +#import "ClancySDK/ClancyXinXi.h" |
7 | 7 | ||
8 | #import "TrackingIO.h" | 8 | #import "TrackingIO.h" |
9 | 9 | ||
10 | @implementation SDKInterface : Interface | 10 | @implementation SDKInterface : Interface |
11 | 11 | ||
12 | int mExchange; | 12 | int mExchange; |
13 | -NSString *RainbowSDKAppId; | 13 | +NSString *ClancySDKAppId; |
14 | -NSString *RainbowSDKAppKey; | 14 | +NSString *ClancySDKAppKey; |
15 | 15 | ||
16 | - (void)SDKinit:(UIViewController *) control | 16 | - (void)SDKinit:(UIViewController *) control |
17 | { | 17 | { |
... | @@ -19,10 +19,10 @@ NSString *RainbowSDKAppKey; | ... | @@ -19,10 +19,10 @@ NSString *RainbowSDKAppKey; |
19 | [super SDKinit:control]; | 19 | [super SDKinit:control]; |
20 | 20 | ||
21 | [PoolConfig getInstance]; | 21 | [PoolConfig getInstance]; |
22 | - [[RainbowAllManager RainbowInstance]RainbowChuShiHua]; | 22 | + [[ClancyAllManager ClancyInstance]ClancyChuShiHua]; |
23 | - [[RainbowAllManager RainbowInstance]RainbowYangShi:@"sdk"]; | 23 | + [[ClancyAllManager ClancyInstance]ClancyYangShi:@"sdk"]; |
24 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RainbowCKAssetsLoginNotification object:nil]; | 24 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ClancyCKAssetsLoginNotification object:nil]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RainbowCKAssetsToolCallBack" object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ClancyCKAssetsToolCallBack" object:nil]; |
26 | 26 | ||
27 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 27 | [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
28 | 28 | ||
... | @@ -39,9 +39,9 @@ NSString *RainbowSDKAppKey; | ... | @@ -39,9 +39,9 @@ NSString *RainbowSDKAppKey; |
39 | - (void)SDKloginSDK | 39 | - (void)SDKloginSDK |
40 | { | 40 | { |
41 | //APPID APPKEY | 41 | //APPID APPKEY |
42 | - RainbowSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; | 42 | + ClancySDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; |
43 | - RainbowSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; | 43 | + ClancySDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; |
44 | - [[RainbowAllManager RainbowInstance]RainbowDengLu:RainbowSDKAppId :RainbowSDKAppKey :self.controller]; | 44 | + [[ClancyAllManager ClancyInstance]ClancyDengLu:ClancySDKAppId :ClancySDKAppKey :self.controller]; |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
... | @@ -52,9 +52,9 @@ NSString *RainbowSDKAppKey; | ... | @@ -52,9 +52,9 @@ NSString *RainbowSDKAppKey; |
52 | { | 52 | { |
53 | NSLog(@"loginchek"); | 53 | NSLog(@"loginchek"); |
54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; | 54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; |
55 | - loginInfo.openId = [[RainbowXinXi getInstance]openId]; | 55 | + loginInfo.openId = [[ClancyXinXi getInstance]openId]; |
56 | - loginInfo.sign = [[RainbowXinXi getInstance] token]; | 56 | + loginInfo.sign = [[ClancyXinXi getInstance] token]; |
57 | - loginInfo.timestamp = [[RainbowXinXi getInstance] timestamp]; | 57 | + loginInfo.timestamp = [[ClancyXinXi getInstance] timestamp]; |
58 | 58 | ||
59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
60 | [[PoolChecker getInstance] startCheck:loginInfo]; | 60 | [[PoolChecker getInstance] startCheck:loginInfo]; |
... | @@ -82,7 +82,7 @@ NSString *RainbowSDKAppKey; | ... | @@ -82,7 +82,7 @@ NSString *RainbowSDKAppKey; |
82 | { | 82 | { |
83 | NSDictionary* payResultDic = notification.object; | 83 | NSDictionary* payResultDic = notification.object; |
84 | 84 | ||
85 | - NSString* receiptStr = [payResultDic objectForKey:@"RainbowCKAssetsToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"ClancyCKAssetsToolResult"]; |
86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; | 86 | NSString* queryId = [payResultDic objectForKey:@"query_id"]; |
87 | 87 | ||
88 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; | 88 | NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; |
... | @@ -216,10 +216,10 @@ NSString *RainbowSDKAppKey; | ... | @@ -216,10 +216,10 @@ NSString *RainbowSDKAppKey; |
216 | NSString *other = [payInfo other]; | 216 | NSString *other = [payInfo other]; |
217 | 217 | ||
218 | if (other && [other length] > 0) { | 218 | if (other && [other length] > 0) { |
219 | - [[RainbowAllManager RainbowInstance] RainbowCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller]; | 219 | + [[ClancyAllManager ClancyInstance] ClancyCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
220 | }else{ | 220 | }else{ |
221 | NSString* products = [payInfo products]; | 221 | NSString* products = [payInfo products]; |
222 | - [[RainbowAllManager RainbowInstance] RainbowCKQueryOperation:self.controller RainbowHuoWuID:products RainbowJiaGe:[payInfo postAmount] RainbowHuoWuMing:[payInfo productName] RainbowDingDanHao:queryId]; | 222 | + [[ClancyAllManager ClancyInstance] ClancyCKQueryOperation:self.controller ClancyHuoWuID:products ClancyJiaGe:[payInfo postAmount] ClancyHuoWuMing:[payInfo productName] ClancyDingDanHao:queryId]; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ... | ... |
-
Please register or login to post a comment