lizhihui

更新 Extractor 181129版本

Showing 64 changed files with 235 additions and 235 deletions
No preview for this file type
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897F821A54A6500E0AE84 /* PoolSdk.framework */; };
269897FD21A5526A00E0AE84 /* Heimdall.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897FC21A5526A00E0AE84 /* Heimdall.framework */; };
26E7F61C21AF9AB1000D6167 /* Extractor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26E7F61B21AF9AB1000D6167 /* Extractor.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 */
269897F821A54A6500E0AE84 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
269897FC21A5526A00E0AE84 /* Heimdall.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Heimdall.framework; sourceTree = "<group>"; };
26E7F61B21AF9AB1000D6167 /* Extractor.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Extractor.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>"; };
......@@ -103,10 +103,10 @@
buildActionMask = 2147483647;
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
269897FD21A5526A00E0AE84 /* Heimdall.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
26E7F61C21AF9AB1000D6167 /* Extractor.framework in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
269897FC21A5526A00E0AE84 /* Heimdall.framework */,
26E7F61B21AF9AB1000D6167 /* Extractor.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface HeimdallDGLogger : NSObject
@interface ExtractorDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface HeimdallPoolBaseModel : NSObject
@interface ExtractorPoolBaseModel : NSObject
- (NSString *)HeimdallObjectToJsonString;
- (NSString *)ExtractorObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) HeimdallreportOpen;
- (void) HeimdallreportSDKOpen;
- (void)HeimdallhandleFirstOpenApp:(NSString*) path;
- (void) ExtractorreportOpen;
- (void) ExtractorreportSDKOpen;
- (void)ExtractorhandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) HeimdallReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) ExtractorReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)HeimdallStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)ExtractorStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolCreateOrderInfo : HeimdallPoolBaseModel
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolCreateOrderInfo : ExtractorPoolBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -16,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) HeimdallGetTsign ;
- (NSString *) HeimdallGetTimestamp ;
- (NSString *) ExtractorGetTsign ;
- (NSString *) ExtractorGetTimestamp ;
@end
......
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolLoginInfo : HeimdallPoolBaseModel
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolLoginInfo : ExtractorPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolGzyazfInfo : HeimdallPoolBaseModel
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolGzyazfInfo : ExtractorPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// HeimdallPoolReportInfo.h
// ExtractorPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolReportInfo : HeimdallPoolBaseModel
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolReportInfo : ExtractorPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)HeimdallDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)ExtractorDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
@interface ExtractorIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ExtractorDingDanHao;
@property(nonatomic,strong) NSDictionary* ExtractorHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ExtractorHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ExtractorHuoWuLieBiaoView;
- (void)ExtractorHuaQianView:(UIViewController*)controller ExtractorHuoWuD:(NSString*)products ExtractorQian:(NSString*)amount ExtractorHuoWuMing:(NSString*)productName ExtractorDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ExtractorAllManager : NSObject
{
NSString* ExtractorCKAPPID_;
NSString* ExtractorCKAPPKEY_;
NSString* ExtractorInviterCode_;
}
@property bool ExtractorGeiWoHuaQianBa;
+ (ExtractorAllManager *)ExtractorInstance;
- (void)ExtractorChuShiHua;
- (void)ExtractorDengLu:(NSString *)ExtractorCKAPPID : (NSString *)ExtractorCKAPPKEY : (UIViewController *)controller;
- (void)ExtractorYangShi:(NSString*)ExtractorLeiXing;
- (void)ExtractorCKQuery: (NSString *)ExtractorFuWuQiID : (NSString *)ExtractorNickName : (NSNumber *)ExtractorAmount : (NSString *)ExtractorCallBack : (UIViewController *)controller : (NSString *)ExtractorServerName;
- (void)ExtractorCKQueryOperation:(UIViewController*)controll ExtractorHuoWuID:(NSString*)products ExtractorJiaGe:(NSString*)amount ExtractorHuoWuMing:(NSString*)productName ExtractorDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ExtractorCKAssetsExitNotification;
extern NSString * const ExtractorCKAssetsLoginNotification;
extern NSString * const ExtractorCKAssetsErrorNotification;
@interface ExtractorHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface ExtractorHungry : NSObject
+(void)ExtractorQsad;
-(void)ExtractorQsad123;
+(void)ExtractorQsagfhd;
-(void)ExtractorQsavbnd;
+(void)ExtractorQsavbnd;
-(void)ExtractorQsafgd;
+(void)ExtractorQsiuad;
@end
#import <UIKit/UIKit.h>
@interface HeimdallLocation : NSObject
@interface ExtractorLocation : NSObject
+ (NSString *)HeimdallSKCloudServiceSetupOptionsKey;
+ (NSString *)ExtractorSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "HeimdallMessage.h"
#import "ExtractorMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HeimdallMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ExtractorMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL HeimdallYouYuanJiao;
@property(assign) BOOL ExtractorYouYuanJiao;
- (void)HeimdallSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HeimdallChuShiHuaWebView;
- (void)ExtractorSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ExtractorChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface HeimdallMessage : NSObject
@interface ExtractorMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HeimdallMessage *)getInstance;
+ (ExtractorMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface HeimdallMessageJM : NSObject
@interface ExtractorMessageJM : NSObject
+(NSString *)HeimdallJM:(NSString *)jm;
+(NSString *)ExtractorJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface HeimdallIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HeimdallDingDanHao;
@property(nonatomic,strong) NSDictionary* HeimdallHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HeimdallHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HeimdallHuoWuLieBiaoView;
- (void)HeimdallHuaQianView:(UIViewController*)controller HeimdallHuoWuD:(NSString*)products HeimdallQian:(NSString*)amount HeimdallHuoWuMing:(NSString*)productName HeimdallDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HeimdallAllManager : NSObject
{
NSString* HeimdallCKAPPID_;
NSString* HeimdallCKAPPKEY_;
NSString* HeimdallInviterCode_;
}
@property bool HeimdallGeiWoHuaQianBa;
+ (HeimdallAllManager *)HeimdallInstance;
- (void)HeimdallChuShiHua;
- (void)HeimdallDengLu:(NSString *)HeimdallCKAPPID : (NSString *)HeimdallCKAPPKEY : (UIViewController *)controller;
- (void)HeimdallYangShi:(NSString*)HeimdallLeiXing;
- (void)HeimdallCKQuery: (NSString *)HeimdallFuWuQiID : (NSString *)HeimdallNickName : (NSNumber *)HeimdallAmount : (NSString *)HeimdallCallBack : (UIViewController *)controller : (NSString *)HeimdallServerName;
- (void)HeimdallCKQueryOperation:(UIViewController*)controll HeimdallHuoWuID:(NSString*)products HeimdallJiaGe:(NSString*)amount HeimdallHuoWuMing:(NSString*)productName HeimdallDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HeimdallCKAssetsExitNotification;
extern NSString * const HeimdallCKAssetsLoginNotification;
extern NSString * const HeimdallCKAssetsErrorNotification;
@interface HeimdallHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface HeimdallHungry : NSObject
+(void)HeimdallQsad;
-(void)HeimdallQsad123;
+(void)HeimdallQsagfhd;
-(void)HeimdallQsavbnd;
+(void)HeimdallQsavbnd;
-(void)HeimdallQsafgd;
+(void)HeimdallQsiuad;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Heimdall/HeimdallAllManager.h"
#import "Heimdall/HeimdallHuiTiaoNotification.h"
#import "Heimdall/HeimdallMessage.h"
#import "Extractor/ExtractorAllManager.h"
#import "Extractor/ExtractorHuiTiaoNotification.h"
#import "Extractor/ExtractorMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *HeimdallAppId;
NSString *HeimdallAppKey;
NSString *ExtractorAppId;
NSString *ExtractorAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *HeimdallAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[HeimdallAllManager HeimdallInstance]HeimdallChuShiHua];
[[HeimdallAllManager HeimdallInstance]HeimdallYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HeimdallCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HeimdallCKAssetsToolCallBack" object:nil];
[[ExtractorAllManager ExtractorInstance]ExtractorChuShiHua];
[[ExtractorAllManager ExtractorInstance]ExtractorYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ExtractorCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ExtractorCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *HeimdallAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
HeimdallAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
HeimdallAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HeimdallAllManager HeimdallInstance]HeimdallDengLu:HeimdallAppId :HeimdallAppKey :self.controller];
ExtractorAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ExtractorAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ExtractorAllManager ExtractorInstance]ExtractorDengLu:ExtractorAppId :ExtractorAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *HeimdallAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[HeimdallMessage getInstance]openId];
loginInfo.sign = [[HeimdallMessage getInstance] token];
loginInfo.timestamp = [[HeimdallMessage getInstance] timestamp];
loginInfo.openId = [[ExtractorMessage getInstance]openId];
loginInfo.sign = [[ExtractorMessage getInstance] token];
loginInfo.timestamp = [[ExtractorMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *HeimdallAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HeimdallCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ExtractorCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *HeimdallAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HeimdallAllManager HeimdallInstance] HeimdallCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[ExtractorAllManager ExtractorInstance] ExtractorCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[HeimdallAllManager HeimdallInstance] HeimdallCKQueryOperation:self.controller HeimdallHuoWuID:products HeimdallJiaGe:[payInfo postAmount] HeimdallHuoWuMing:[payInfo productName] HeimdallDingDanHao:queryId];
[[ExtractorAllManager ExtractorInstance] ExtractorCKQueryOperation:self.controller ExtractorHuoWuID:products ExtractorJiaGe:[payInfo postAmount] ExtractorHuoWuMing:[payInfo productName] ExtractorDingDanHao:queryId];
}
}
......
新接入请参考对接文档和demo<br>
2018-11-21:<br>
1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br>
2、引入 ``` Heimdall.framework ``` <br>
2018-11-29:<br>
1、``` 删除pool_file文件夹中framework ``` <br>
2、引入 ``` Extractor.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
4、替换 ``` PoolSdk.framework ``` <br>
\ No newline at end of file
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface HeimdallDGLogger : NSObject
@interface ExtractorDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface HeimdallPoolBaseModel : NSObject
@interface ExtractorPoolBaseModel : NSObject
- (NSString *)HeimdallObjectToJsonString;
- (NSString *)ExtractorObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) HeimdallreportOpen;
- (void) HeimdallreportSDKOpen;
- (void)HeimdallhandleFirstOpenApp:(NSString*) path;
- (void) ExtractorreportOpen;
- (void) ExtractorreportSDKOpen;
- (void)ExtractorhandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) HeimdallReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) ExtractorReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)HeimdallStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)ExtractorStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolCreateOrderInfo : HeimdallPoolBaseModel
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolCreateOrderInfo : ExtractorPoolBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -16,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) HeimdallGetTsign ;
- (NSString *) HeimdallGetTimestamp ;
- (NSString *) ExtractorGetTsign ;
- (NSString *) ExtractorGetTimestamp ;
@end
......
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolLoginInfo : HeimdallPoolBaseModel
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolLoginInfo : ExtractorPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolGzyazfInfo : HeimdallPoolBaseModel
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolGzyazfInfo : ExtractorPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// HeimdallPoolReportInfo.h
// ExtractorPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/HeimdallPoolBaseModel.h"
@interface PoolReportInfo : HeimdallPoolBaseModel
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolReportInfo : ExtractorPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)HeimdallDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)ExtractorDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
@interface ExtractorIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ExtractorDingDanHao;
@property(nonatomic,strong) NSDictionary* ExtractorHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ExtractorHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ExtractorHuoWuLieBiaoView;
- (void)ExtractorHuaQianView:(UIViewController*)controller ExtractorHuoWuD:(NSString*)products ExtractorQian:(NSString*)amount ExtractorHuoWuMing:(NSString*)productName ExtractorDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ExtractorAllManager : NSObject
{
NSString* ExtractorCKAPPID_;
NSString* ExtractorCKAPPKEY_;
NSString* ExtractorInviterCode_;
}
@property bool ExtractorGeiWoHuaQianBa;
+ (ExtractorAllManager *)ExtractorInstance;
- (void)ExtractorChuShiHua;
- (void)ExtractorDengLu:(NSString *)ExtractorCKAPPID : (NSString *)ExtractorCKAPPKEY : (UIViewController *)controller;
- (void)ExtractorYangShi:(NSString*)ExtractorLeiXing;
- (void)ExtractorCKQuery: (NSString *)ExtractorFuWuQiID : (NSString *)ExtractorNickName : (NSNumber *)ExtractorAmount : (NSString *)ExtractorCallBack : (UIViewController *)controller : (NSString *)ExtractorServerName;
- (void)ExtractorCKQueryOperation:(UIViewController*)controll ExtractorHuoWuID:(NSString*)products ExtractorJiaGe:(NSString*)amount ExtractorHuoWuMing:(NSString*)productName ExtractorDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ExtractorCKAssetsExitNotification;
extern NSString * const ExtractorCKAssetsLoginNotification;
extern NSString * const ExtractorCKAssetsErrorNotification;
@interface ExtractorHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface ExtractorHungry : NSObject
+(void)ExtractorQsad;
-(void)ExtractorQsad123;
+(void)ExtractorQsagfhd;
-(void)ExtractorQsavbnd;
+(void)ExtractorQsavbnd;
-(void)ExtractorQsafgd;
+(void)ExtractorQsiuad;
@end
#import <UIKit/UIKit.h>
@interface HeimdallLocation : NSObject
@interface ExtractorLocation : NSObject
+ (NSString *)HeimdallSKCloudServiceSetupOptionsKey;
+ (NSString *)ExtractorSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "HeimdallMessage.h"
#import "ExtractorMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface HeimdallMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ExtractorMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL HeimdallYouYuanJiao;
@property(assign) BOOL ExtractorYouYuanJiao;
- (void)HeimdallSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)HeimdallChuShiHuaWebView;
- (void)ExtractorSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ExtractorChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface HeimdallMessage : NSObject
@interface ExtractorMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (HeimdallMessage *)getInstance;
+ (ExtractorMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface HeimdallMessageJM : NSObject
@interface ExtractorMessageJM : NSObject
+(NSString *)HeimdallJM:(NSString *)jm;
+(NSString *)ExtractorJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface HeimdallIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* HeimdallDingDanHao;
@property(nonatomic,strong) NSDictionary* HeimdallHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* HeimdallHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *HeimdallHuoWuLieBiaoView;
- (void)HeimdallHuaQianView:(UIViewController*)controller HeimdallHuoWuD:(NSString*)products HeimdallQian:(NSString*)amount HeimdallHuoWuMing:(NSString*)productName HeimdallDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HeimdallAllManager : NSObject
{
NSString* HeimdallCKAPPID_;
NSString* HeimdallCKAPPKEY_;
NSString* HeimdallInviterCode_;
}
@property bool HeimdallGeiWoHuaQianBa;
+ (HeimdallAllManager *)HeimdallInstance;
- (void)HeimdallChuShiHua;
- (void)HeimdallDengLu:(NSString *)HeimdallCKAPPID : (NSString *)HeimdallCKAPPKEY : (UIViewController *)controller;
- (void)HeimdallYangShi:(NSString*)HeimdallLeiXing;
- (void)HeimdallCKQuery: (NSString *)HeimdallFuWuQiID : (NSString *)HeimdallNickName : (NSNumber *)HeimdallAmount : (NSString *)HeimdallCallBack : (UIViewController *)controller : (NSString *)HeimdallServerName;
- (void)HeimdallCKQueryOperation:(UIViewController*)controll HeimdallHuoWuID:(NSString*)products HeimdallJiaGe:(NSString*)amount HeimdallHuoWuMing:(NSString*)productName HeimdallDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const HeimdallCKAssetsExitNotification;
extern NSString * const HeimdallCKAssetsLoginNotification;
extern NSString * const HeimdallCKAssetsErrorNotification;
@interface HeimdallHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface HeimdallHungry : NSObject
+(void)HeimdallQsad;
-(void)HeimdallQsad123;
+(void)HeimdallQsagfhd;
-(void)HeimdallQsavbnd;
+(void)HeimdallQsavbnd;
-(void)HeimdallQsafgd;
+(void)HeimdallQsiuad;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Heimdall/HeimdallAllManager.h"
#import "Heimdall/HeimdallHuiTiaoNotification.h"
#import "Heimdall/HeimdallMessage.h"
#import "Extractor/ExtractorAllManager.h"
#import "Extractor/ExtractorHuiTiaoNotification.h"
#import "Extractor/ExtractorMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *HeimdallAppId;
NSString *HeimdallAppKey;
NSString *ExtractorAppId;
NSString *ExtractorAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *HeimdallAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[HeimdallAllManager HeimdallInstance]HeimdallChuShiHua];
[[HeimdallAllManager HeimdallInstance]HeimdallYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HeimdallCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HeimdallCKAssetsToolCallBack" object:nil];
[[ExtractorAllManager ExtractorInstance]ExtractorChuShiHua];
[[ExtractorAllManager ExtractorInstance]ExtractorYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ExtractorCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ExtractorCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *HeimdallAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
HeimdallAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
HeimdallAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HeimdallAllManager HeimdallInstance]HeimdallDengLu:HeimdallAppId :HeimdallAppKey :self.controller];
ExtractorAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ExtractorAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ExtractorAllManager ExtractorInstance]ExtractorDengLu:ExtractorAppId :ExtractorAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *HeimdallAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[HeimdallMessage getInstance]openId];
loginInfo.sign = [[HeimdallMessage getInstance] token];
loginInfo.timestamp = [[HeimdallMessage getInstance] timestamp];
loginInfo.openId = [[ExtractorMessage getInstance]openId];
loginInfo.sign = [[ExtractorMessage getInstance] token];
loginInfo.timestamp = [[ExtractorMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *HeimdallAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"HeimdallCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ExtractorCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *HeimdallAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[HeimdallAllManager HeimdallInstance] HeimdallCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[ExtractorAllManager ExtractorInstance] ExtractorCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[HeimdallAllManager HeimdallInstance] HeimdallCKQueryOperation:self.controller HeimdallHuoWuID:products HeimdallJiaGe:[payInfo postAmount] HeimdallHuoWuMing:[payInfo productName] HeimdallDingDanHao:queryId];
[[ExtractorAllManager ExtractorInstance] ExtractorCKQueryOperation:self.controller ExtractorHuoWuID:products ExtractorJiaGe:[payInfo postAmount] ExtractorHuoWuMing:[payInfo productName] ExtractorDingDanHao:queryId];
}
}
......