lizhihui

更新181031CPS

Showing 44 changed files with 181 additions and 241 deletions
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 - 261FB1AA217868E900029D36 /* PolarisSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 261FB1A9217868E900029D36 /* PolarisSDK.framework */; }; 11 + 2649978521894D4100EC956C /* HalloweenSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2649978421894D4100EC956C /* HalloweenSDK.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 */; };
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
60 60
61 /* Begin PBXFileReference section */ 61 /* Begin PBXFileReference section */
62 260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; 62 260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
63 - 261FB1A9217868E900029D36 /* PolarisSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PolarisSDK.framework; sourceTree = "<group>"; }; 63 + 2649978421894D4100EC956C /* HalloweenSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HalloweenSDK.framework; sourceTree = "<group>"; };
64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; 64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; 65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
66 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; }; 66 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; };
...@@ -104,13 +104,13 @@ ...@@ -104,13 +104,13 @@
104 files = ( 104 files = (
105 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, 105 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
106 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, 106 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
107 - 261FB1AA217868E900029D36 /* PolarisSDK.framework in Frameworks */,
108 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, 107 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
109 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, 108 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
110 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, 109 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
111 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, 110 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
112 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, 111 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
113 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, 112 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
113 + 2649978521894D4100EC956C /* HalloweenSDK.framework in Frameworks */,
114 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, 114 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
115 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, 115 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
116 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, 116 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
143 8476DF641C4DD71D00EC42BA /* poolsdk */ = { 143 8476DF641C4DD71D00EC42BA /* poolsdk */ = {
144 isa = PBXGroup; 144 isa = PBXGroup;
145 children = ( 145 children = (
146 - 261FB1A9217868E900029D36 /* PolarisSDK.framework */, 146 + 2649978421894D4100EC956C /* HalloweenSDK.framework */,
147 84A090AC1F174E21003D23FB /* TrackingIO.h */, 147 84A090AC1F174E21003D23FB /* TrackingIO.h */,
148 84A090AA1F160A69003D23FB /* TrackingIO.a */, 148 84A090AA1F160A69003D23FB /* TrackingIO.a */,
149 846BD21F1EE9342700E89A1D /* pool_setting */, 149 846BD21F1EE9342700E89A1D /* pool_setting */,
......
...@@ -13,8 +13,11 @@ ...@@ -13,8 +13,11 @@
13 13
14 @end 14 @end
15 15
16 +NSString* sdkUserId = @"";
17 +
16 @implementation MainViewController 18 @implementation MainViewController
17 19
20 +
18 - (void)viewDidLoad { 21 - (void)viewDidLoad {
19 [super viewDidLoad]; 22 [super viewDidLoad];
20 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil]; 23 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil];
...@@ -55,6 +58,7 @@ ...@@ -55,6 +58,7 @@
55 NSLog(@"result state:%d",result.statusCode); 58 NSLog(@"result state:%d",result.statusCode);
56 if (result.statusCode == POOLSDK_NO_ERROR) { 59 if (result.statusCode == POOLSDK_NO_ERROR) {
57 PoolLoginInfo *loginInfo = (PoolLoginInfo*)result.extendData; 60 PoolLoginInfo *loginInfo = (PoolLoginInfo*)result.extendData;
61 + sdkUserId = [loginInfo openId];
58 NSLog(@"收到登陆信息public openid:%@", [loginInfo openId]); 62 NSLog(@"收到登陆信息public openid:%@", [loginInfo openId]);
59 NSLog(@"收到登陆信息public token:%@", [loginInfo sign]); 63 NSLog(@"收到登陆信息public token:%@", [loginInfo sign]);
60 NSLog(@"收到登陆信息public timestamp:%@", [loginInfo timestamp]); 64 NSLog(@"收到登陆信息public timestamp:%@", [loginInfo timestamp]);
...@@ -99,7 +103,7 @@ ...@@ -99,7 +103,7 @@
99 [payInfo setServerId:@"99887766"]; 103 [payInfo setServerId:@"99887766"];
100 [payInfo setPlayerName:@"iamrolename"]; 104 [payInfo setPlayerName:@"iamrolename"];
101 [payInfo setPlayerLevel:@"10"]; 105 [payInfo setPlayerLevel:@"10"];
102 - [payInfo setUserId:@"123456"]; 106 + [payInfo setUserId:sdkUserId];
103 [payInfo setPostAmount:@"1"]; 107 [payInfo setPostAmount:@"1"];
104 [payInfo setProductId:@"com.xiongdi.xunqinji.6"]; 108 [payInfo setProductId:@"com.xiongdi.xunqinji.6"];
105 [payInfo setPlayerId:@"1231241234"]; 109 [payInfo setPlayerId:@"1231241234"];
......
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface HalloweenIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* HalloweenDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* HalloweenHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* HalloweenHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *HalloweenHuoWuLieBiaoView;
9 +
10 +- (void)HalloweenHuaQianView:(UIViewController*)controller HalloweenHuoWuD:(NSString*)products HalloweenQian:(NSString*)amount HalloweenHuoWuMing:(NSString*)productName HalloweenDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface HalloweenAllManager : NSObject
5 +{
6 + NSString* HalloweenCKAPPID_;
7 + NSString* HalloweenCKAPPKEY_;
8 +
9 + NSString* HalloweenInviterCode_;
10 +}
11 +
12 +@property bool HalloweenGeiWoHuaQianBa;
13 +
14 ++ (HalloweenAllManager *)HalloweenInstance;
15 +
16 +- (void)HalloweenChuShiHua;
17 +
18 +- (void)HalloweenDengLu:(NSString *)HalloweenCKAPPID : (NSString *)HalloweenCKAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)HalloweenYangShi:(NSString*)HalloweenLeiXing;
21 +
22 +- (void)HalloweenCKQuery: (NSString *)HalloweenFuWuQiID : (NSString *)HalloweenNickName : (NSNumber *)HalloweenAmount : (NSString *)HalloweenCallBack : (UIViewController *)controller : (NSString *)HalloweenServerName;
23 +
24 +- (void)HalloweenCKQueryOperation:(UIViewController*)controll HalloweenHuoWuID:(NSString*)products HalloweenJiaGe:(NSString*)amount HalloweenHuoWuMing:(NSString*)productName HalloweenDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const HalloweenCKAssetsExitNotification;
4 +extern NSString * const HalloweenCKAssetsLoginNotification;
5 +extern NSString * const HalloweenCKAssetsErrorNotification;
6 +
7 +
8 +@interface HalloweenHuiTiaoNotification : NSObject
9 +
10 +@end
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface PolarisLocation : NSObject 3 +@interface HalloweenLocation : NSObject
4 4
5 -+ (NSString *)PolarisSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)HalloweenSKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "PolarisMessage.h" 2 +#import "HalloweenMessage.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface PolarisMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface HalloweenMain : 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 PolarisYouYuanJiao; 11 +@property(assign) BOOL HalloweenYouYuanJiao;
12 12
13 -- (void)PolarisSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)HalloweenSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)PolarisChuShiHuaWebView; 14 +- (void)HalloweenChuShiHuaWebView;
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> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface PolarisMessage : NSObject 3 +@interface HalloweenMessage : 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 -+ (PolarisMessage *)getInstance; 15 ++ (HalloweenMessage *)getInstance;
16 @end 16 @end
......
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface HalloweenMessageJM : NSObject
4 +
5 ++(NSString *)HalloweenJM:(NSString *)jm;
6 +
7 +@end
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface PolarisIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* PolarisDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* PolarisHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* PolarisHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *PolarisHuoWuLieBiaoView;
9 -
10 -- (void)PolarisHuaQianView:(UIViewController*)controller PolarisHuoWuD:(NSString*)products PolarisQian:(NSString*)amount PolarisHuoWuMing:(NSString*)productName PolarisDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface PolarisAllManager : NSObject
5 -{
6 - NSString* PolarisCKAPPID_;
7 - NSString* PolarisCKAPPKEY_;
8 -
9 - NSString* PolarisInviterCode_;
10 -}
11 -
12 -@property bool PolarisGeiWoHuaQianBa;
13 -
14 -+ (PolarisAllManager *)PolarisInstance;
15 -
16 -- (void)PolarisChuShiHua;
17 -
18 -- (void)PolarisDengLu:(NSString *)PolarisCKAPPID : (NSString *)PolarisCKAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)PolarisYangShi:(NSString*)PolarisLeiXing;
21 -
22 -- (void)PolarisCKQuery: (NSString *)PolarisFuWuQiID : (NSString *)PolarisNickName : (NSNumber *)PolarisAmount : (NSString *)PolarisCallBack : (UIViewController *)controller : (NSString *)PolarisServerName;
23 -
24 -- (void)PolarisCKQueryOperation:(UIViewController*)controll PolarisHuoWuID:(NSString*)products PolarisJiaGe:(NSString*)amount PolarisHuoWuMing:(NSString*)productName PolarisDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const PolarisCKAssetsExitNotification;
4 -extern NSString * const PolarisCKAssetsLoginNotification;
5 -extern NSString * const PolarisCKAssetsErrorNotification;
6 -
7 -
8 -@interface PolarisHuiTiaoNotification : NSObject
9 -
10 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -@interface PolarisMessageJM : NSObject
4 -
5 -+(NSString *)PolarisJM:(NSString *)jm;
6 -
7 -+(void)PolarisEmptyqweS12Jijis;
8 -+(void)PolarisEmptyjqw3123eakdjl;
9 -+(void)PolarisEmptynqw123evcxnklr;
10 --(void)PolarisEmptyasqw123edll;
11 --(void)PolarisEmptyasqw12312edlasdl;
12 --(void)PolarisEmptyasdq3123wellasd;
13 -+(void)PolarisEmptyain;
14 --(void)PolarisEmptybua3in;
15 -+(void)PolarisEmptya3in;
16 --(void)PolarisEmptybu2ain;
17 -+(void)PolarisEmptyai2n;
18 --(void)PolarisEmptybu1ain;
19 -+(void)PolarisEmptyai2nasd;
20 --(void)PolarisEmptybasdu1ain;
21 -
22 -@end
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "PolarisSDK/PolarisAllManager.h" 4 +#import "HalloweenSDK/HalloweenAllManager.h"
5 -#import "PolarisSDK/PolarisHuiTiaoNotification.h" 5 +#import "HalloweenSDK/HalloweenHuiTiaoNotification.h"
6 -#import "PolarisSDK/PolarisMessage.h" 6 +#import "HalloweenSDK/HalloweenMessage.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 *PolarisSDKAppId; 13 +NSString *HalloweenSDKAppId;
14 -NSString *PolarisSDKAppKey; 14 +NSString *HalloweenSDKAppKey;
15 15
16 - (void)SDKinit:(UIViewController *) control 16 - (void)SDKinit:(UIViewController *) control
17 { 17 {
...@@ -19,10 +19,10 @@ NSString *PolarisSDKAppKey; ...@@ -19,10 +19,10 @@ NSString *PolarisSDKAppKey;
19 [super SDKinit:control]; 19 [super SDKinit:control];
20 20
21 [PoolConfig getInstance]; 21 [PoolConfig getInstance];
22 - [[PolarisAllManager PolarisInstance]PolarisChuShiHua]; 22 + [[HalloweenAllManager HalloweenInstance]HalloweenChuShiHua];
23 - [[PolarisAllManager PolarisInstance]PolarisYangShi:@"sdk"]; 23 + [[HalloweenAllManager HalloweenInstance]HalloweenYangShi:@"sdk"];
24 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PolarisCKAssetsLoginNotification object:nil]; 24 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HalloweenCKAssetsLoginNotification object:nil];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PolarisCKAssetsToolCallBack" object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HalloweenCKAssetsToolCallBack" 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 *PolarisSDKAppKey; ...@@ -39,9 +39,9 @@ NSString *PolarisSDKAppKey;
39 - (void)SDKloginSDK 39 - (void)SDKloginSDK
40 { 40 {
41 //APPID APPKEY 41 //APPID APPKEY
42 - PolarisSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; 42 + HalloweenSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
43 - PolarisSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; 43 + HalloweenSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
44 - [[PolarisAllManager PolarisInstance]PolarisDengLu:PolarisSDKAppId :PolarisSDKAppKey :self.controller]; 44 + [[HalloweenAllManager HalloweenInstance]HalloweenDengLu:HalloweenSDKAppId :HalloweenSDKAppKey :self.controller];
45 45
46 } 46 }
47 47
...@@ -52,9 +52,9 @@ NSString *PolarisSDKAppKey; ...@@ -52,9 +52,9 @@ NSString *PolarisSDKAppKey;
52 { 52 {
53 NSLog(@"loginchek"); 53 NSLog(@"loginchek");
54 PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; 54 PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
55 - loginInfo.openId = [[PolarisMessage getInstance]openId]; 55 + loginInfo.openId = [[HalloweenMessage getInstance]openId];
56 - loginInfo.sign = [[PolarisMessage getInstance] token]; 56 + loginInfo.sign = [[HalloweenMessage getInstance] token];
57 - loginInfo.timestamp = [[PolarisMessage getInstance] timestamp]; 57 + loginInfo.timestamp = [[HalloweenMessage 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 *PolarisSDKAppKey; ...@@ -82,7 +82,7 @@ NSString *PolarisSDKAppKey;
82 { 82 {
83 NSDictionary* payResultDic = notification.object; 83 NSDictionary* payResultDic = notification.object;
84 84
85 - NSString* receiptStr = [payResultDic objectForKey:@"PolarisCKAssetsToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"HalloweenCKAssetsToolResult"];
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 *PolarisSDKAppKey; ...@@ -216,10 +216,10 @@ NSString *PolarisSDKAppKey;
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 - [[PolarisAllManager PolarisInstance] PolarisCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 219 + [[HalloweenAllManager HalloweenInstance] HalloweenCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
220 }else{ 220 }else{
221 NSString* products = [payInfo products]; 221 NSString* products = [payInfo products];
222 - [[PolarisAllManager PolarisInstance] PolarisCKQueryOperation:self.controller PolarisHuoWuID:products PolarisJiaGe:[payInfo postAmount] PolarisHuoWuMing:[payInfo productName] PolarisDingDanHao:queryId]; 222 + [[HalloweenAllManager HalloweenInstance] HalloweenCKQueryOperation:self.controller HalloweenHuoWuID:products HalloweenJiaGe:[payInfo postAmount] HalloweenHuoWuMing:[payInfo productName] HalloweenDingDanHao:queryId];
223 } 223 }
224 } 224 }
225 225
......
1 新接入请参考对接文档和demo<br> 1 新接入请参考对接文档和demo<br>
2 2
3 -2018-10-18:<br> 3 +2018-10-31:<br>
4 -1、``` 删除pool_file文件夹中ClancySDK.framework ``` <br> 4 +1、``` 删除pool_file文件夹中TurningSDK.framework ``` <br>
5 -2、引入 ``` PloarisSDK.framework ``` <br> 5 +2、引入 ``` HalloweenSDK.framework ``` <br>
6 -3、替换 ``` SDKInterface.m文件 ``` <br> 6 +3、替换 ``` SDKInterface.m文件 ``` <br>
7 -
8 -2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br>
9 -已接入快速更新方法<br>
10 -1、删除XiongDiSDK.framework或者HaibaoSDK.framework<br>
11 -2、引入HMHomeSDK.framework<br>
12 -3、替换SDKInterface.h和SDKInterface.m文件<br>
13 -``` 4、5、6点为公共层SDK(PoolSdk.framework)更新 ``` <br>
14 -4、 替换PoolSdk.framework<br>
15 -5、 支付接口[[PoolSdk shareSDK] payWithPaymentInfo:orderInfo];修改为[[PoolSdk shareSDK] gzyazfWithGzyazfmentInfo:orderInfo];<br>
16 -6、 回调PoolSDKNotificationPay 修改为 PoolSDKNotificationGzyazf<br>
17 -
18 -2017-11-23:<br>
19 -1、更新3.1.1被拒问题
20 -
21 -2017-11-07:<br>
22 -1、修复iphone x状态栏获取网络类型崩溃bug
23 -
24 -2017-11-01:<br>
25 -1、idfa请求添加sdksimplename和gamesimplename参数
26 -
27 -2017-09-08:
28 -1、添加创建订单加载提示
29 -
30 -2017-09-06:
31 -1、添加idfa提交
32 -
33 -2017-08-23:
34 -1、添加openurl接口
35 -
36 -2017-07-12:<br>
37 -1、完善接口,生命周期接口添加,添加登录代理回调,订单创建回调字段添加,角色数据提交字段添加
38 -
39 -2017-06-21: <br>
40 -版本1
...\ No newline at end of file ...\ No newline at end of file
......
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface HalloweenIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* HalloweenDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* HalloweenHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* HalloweenHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *HalloweenHuoWuLieBiaoView;
9 +
10 +- (void)HalloweenHuaQianView:(UIViewController*)controller HalloweenHuoWuD:(NSString*)products HalloweenQian:(NSString*)amount HalloweenHuoWuMing:(NSString*)productName HalloweenDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface HalloweenAllManager : NSObject
5 +{
6 + NSString* HalloweenCKAPPID_;
7 + NSString* HalloweenCKAPPKEY_;
8 +
9 + NSString* HalloweenInviterCode_;
10 +}
11 +
12 +@property bool HalloweenGeiWoHuaQianBa;
13 +
14 ++ (HalloweenAllManager *)HalloweenInstance;
15 +
16 +- (void)HalloweenChuShiHua;
17 +
18 +- (void)HalloweenDengLu:(NSString *)HalloweenCKAPPID : (NSString *)HalloweenCKAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)HalloweenYangShi:(NSString*)HalloweenLeiXing;
21 +
22 +- (void)HalloweenCKQuery: (NSString *)HalloweenFuWuQiID : (NSString *)HalloweenNickName : (NSNumber *)HalloweenAmount : (NSString *)HalloweenCallBack : (UIViewController *)controller : (NSString *)HalloweenServerName;
23 +
24 +- (void)HalloweenCKQueryOperation:(UIViewController*)controll HalloweenHuoWuID:(NSString*)products HalloweenJiaGe:(NSString*)amount HalloweenHuoWuMing:(NSString*)productName HalloweenDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const HalloweenCKAssetsExitNotification;
4 +extern NSString * const HalloweenCKAssetsLoginNotification;
5 +extern NSString * const HalloweenCKAssetsErrorNotification;
6 +
7 +
8 +@interface HalloweenHuiTiaoNotification : NSObject
9 +
10 +@end
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface PolarisLocation : NSObject 3 +@interface HalloweenLocation : NSObject
4 4
5 -+ (NSString *)PolarisSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)HalloweenSKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "PolarisMessage.h" 2 +#import "HalloweenMessage.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface PolarisMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface HalloweenMain : 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 PolarisYouYuanJiao; 11 +@property(assign) BOOL HalloweenYouYuanJiao;
12 12
13 -- (void)PolarisSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)HalloweenSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)PolarisChuShiHuaWebView; 14 +- (void)HalloweenChuShiHuaWebView;
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> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface PolarisMessage : NSObject 3 +@interface HalloweenMessage : 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 -+ (PolarisMessage *)getInstance; 15 ++ (HalloweenMessage *)getInstance;
16 @end 16 @end
......
1 +#import <Foundation/Foundation.h>
2 +
3 +@interface HalloweenMessageJM : NSObject
4 +
5 ++(NSString *)HalloweenJM:(NSString *)jm;
6 +
7 +@end
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface PolarisIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* PolarisDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* PolarisHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* PolarisHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *PolarisHuoWuLieBiaoView;
9 -
10 -- (void)PolarisHuaQianView:(UIViewController*)controller PolarisHuoWuD:(NSString*)products PolarisQian:(NSString*)amount PolarisHuoWuMing:(NSString*)productName PolarisDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface PolarisAllManager : NSObject
5 -{
6 - NSString* PolarisCKAPPID_;
7 - NSString* PolarisCKAPPKEY_;
8 -
9 - NSString* PolarisInviterCode_;
10 -}
11 -
12 -@property bool PolarisGeiWoHuaQianBa;
13 -
14 -+ (PolarisAllManager *)PolarisInstance;
15 -
16 -- (void)PolarisChuShiHua;
17 -
18 -- (void)PolarisDengLu:(NSString *)PolarisCKAPPID : (NSString *)PolarisCKAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)PolarisYangShi:(NSString*)PolarisLeiXing;
21 -
22 -- (void)PolarisCKQuery: (NSString *)PolarisFuWuQiID : (NSString *)PolarisNickName : (NSNumber *)PolarisAmount : (NSString *)PolarisCallBack : (UIViewController *)controller : (NSString *)PolarisServerName;
23 -
24 -- (void)PolarisCKQueryOperation:(UIViewController*)controll PolarisHuoWuID:(NSString*)products PolarisJiaGe:(NSString*)amount PolarisHuoWuMing:(NSString*)productName PolarisDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const PolarisCKAssetsExitNotification;
4 -extern NSString * const PolarisCKAssetsLoginNotification;
5 -extern NSString * const PolarisCKAssetsErrorNotification;
6 -
7 -
8 -@interface PolarisHuiTiaoNotification : NSObject
9 -
10 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -@interface PolarisMessageJM : NSObject
4 -
5 -+(NSString *)PolarisJM:(NSString *)jm;
6 -
7 -+(void)PolarisEmptyqweS12Jijis;
8 -+(void)PolarisEmptyjqw3123eakdjl;
9 -+(void)PolarisEmptynqw123evcxnklr;
10 --(void)PolarisEmptyasqw123edll;
11 --(void)PolarisEmptyasqw12312edlasdl;
12 --(void)PolarisEmptyasdq3123wellasd;
13 -+(void)PolarisEmptyain;
14 --(void)PolarisEmptybua3in;
15 -+(void)PolarisEmptya3in;
16 --(void)PolarisEmptybu2ain;
17 -+(void)PolarisEmptyai2n;
18 --(void)PolarisEmptybu1ain;
19 -+(void)PolarisEmptyai2nasd;
20 --(void)PolarisEmptybasdu1ain;
21 -
22 -@end
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "PolarisSDK/PolarisAllManager.h" 4 +#import "HalloweenSDK/HalloweenAllManager.h"
5 -#import "PolarisSDK/PolarisHuiTiaoNotification.h" 5 +#import "HalloweenSDK/HalloweenHuiTiaoNotification.h"
6 -#import "PolarisSDK/PolarisMessage.h" 6 +#import "HalloweenSDK/HalloweenMessage.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 *PolarisSDKAppId; 13 +NSString *HalloweenSDKAppId;
14 -NSString *PolarisSDKAppKey; 14 +NSString *HalloweenSDKAppKey;
15 15
16 - (void)SDKinit:(UIViewController *) control 16 - (void)SDKinit:(UIViewController *) control
17 { 17 {
...@@ -19,10 +19,10 @@ NSString *PolarisSDKAppKey; ...@@ -19,10 +19,10 @@ NSString *PolarisSDKAppKey;
19 [super SDKinit:control]; 19 [super SDKinit:control];
20 20
21 [PoolConfig getInstance]; 21 [PoolConfig getInstance];
22 - [[PolarisAllManager PolarisInstance]PolarisChuShiHua]; 22 + [[HalloweenAllManager HalloweenInstance]HalloweenChuShiHua];
23 - [[PolarisAllManager PolarisInstance]PolarisYangShi:@"sdk"]; 23 + [[HalloweenAllManager HalloweenInstance]HalloweenYangShi:@"sdk"];
24 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PolarisCKAssetsLoginNotification object:nil]; 24 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HalloweenCKAssetsLoginNotification object:nil];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PolarisCKAssetsToolCallBack" object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HalloweenCKAssetsToolCallBack" 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 *PolarisSDKAppKey; ...@@ -39,9 +39,9 @@ NSString *PolarisSDKAppKey;
39 - (void)SDKloginSDK 39 - (void)SDKloginSDK
40 { 40 {
41 //APPID APPKEY 41 //APPID APPKEY
42 - PolarisSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; 42 + HalloweenSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
43 - PolarisSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; 43 + HalloweenSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
44 - [[PolarisAllManager PolarisInstance]PolarisDengLu:PolarisSDKAppId :PolarisSDKAppKey :self.controller]; 44 + [[HalloweenAllManager HalloweenInstance]HalloweenDengLu:HalloweenSDKAppId :HalloweenSDKAppKey :self.controller];
45 45
46 } 46 }
47 47
...@@ -52,9 +52,9 @@ NSString *PolarisSDKAppKey; ...@@ -52,9 +52,9 @@ NSString *PolarisSDKAppKey;
52 { 52 {
53 NSLog(@"loginchek"); 53 NSLog(@"loginchek");
54 PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; 54 PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
55 - loginInfo.openId = [[PolarisMessage getInstance]openId]; 55 + loginInfo.openId = [[HalloweenMessage getInstance]openId];
56 - loginInfo.sign = [[PolarisMessage getInstance] token]; 56 + loginInfo.sign = [[HalloweenMessage getInstance] token];
57 - loginInfo.timestamp = [[PolarisMessage getInstance] timestamp]; 57 + loginInfo.timestamp = [[HalloweenMessage 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 *PolarisSDKAppKey; ...@@ -82,7 +82,7 @@ NSString *PolarisSDKAppKey;
82 { 82 {
83 NSDictionary* payResultDic = notification.object; 83 NSDictionary* payResultDic = notification.object;
84 84
85 - NSString* receiptStr = [payResultDic objectForKey:@"PolarisCKAssetsToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"HalloweenCKAssetsToolResult"];
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 *PolarisSDKAppKey; ...@@ -216,10 +216,10 @@ NSString *PolarisSDKAppKey;
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 - [[PolarisAllManager PolarisInstance] PolarisCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 219 + [[HalloweenAllManager HalloweenInstance] HalloweenCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
220 }else{ 220 }else{
221 NSString* products = [payInfo products]; 221 NSString* products = [payInfo products];
222 - [[PolarisAllManager PolarisInstance] PolarisCKQueryOperation:self.controller PolarisHuoWuID:products PolarisJiaGe:[payInfo postAmount] PolarisHuoWuMing:[payInfo productName] PolarisDingDanHao:queryId]; 222 + [[HalloweenAllManager HalloweenInstance] HalloweenCKQueryOperation:self.controller HalloweenHuoWuID:products HalloweenJiaGe:[payInfo postAmount] HalloweenHuoWuMing:[payInfo productName] HalloweenDingDanHao:queryId];
223 } 223 }
224 } 224 }
225 225
......