lizhihui

更新181031CPS

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