lizhihui

更新190129版本

Showing 64 changed files with 214 additions and 242 deletions
No preview for this file type
......@@ -7,10 +7,10 @@
objects = {
/* Begin PBXBuildFile section */
2692FA5A21FFFDF900371736 /* Resident.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA5921FFFDF900371736 /* Resident.framework */; };
269897F921A54A6500E0AE84 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269897F821A54A6500E0AE84 /* PoolSdk.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 */; };
846BD2241EE9342700E89A1D /* public_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* public_setting */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
847EE5E21EE9007E003A4B7B /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 847EE5E11EE9007E003A4B7B /* MainViewController.m */; };
8484E4F51EE7E0DC00B402D1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */; };
......@@ -59,11 +59,11 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
2692FA5921FFFDF900371736 /* Resident.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Resident.framework; sourceTree = "<group>"; };
269897F821A54A6500E0AE84 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.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>"; };
846BD21F1EE9342700E89A1D /* public_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = public_setting; path = poolsdk_file/poolsdk/public_setting; sourceTree = "<group>"; };
846BD2221EE9342700E89A1D /* SDKInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDKInterface.h; path = poolsdk_file/poolsdk/SDKInterface.h; sourceTree = "<group>"; };
846BD2231EE9342700E89A1D /* SDKInterface.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDKInterface.m; path = poolsdk_file/poolsdk/SDKInterface.m; sourceTree = "<group>"; };
847EE5E01EE9007E003A4B7B /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; };
......@@ -106,8 +106,8 @@
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 */,
2692FA5A21FFFDF900371736 /* Resident.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
......@@ -143,10 +143,10 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26E7F61B21AF9AB1000D6167 /* Extractor.framework */,
2692FA5921FFFDF900371736 /* Resident.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
846BD21F1EE9342700E89A1D /* public_setting */,
846BD2221EE9342700E89A1D /* SDKInterface.h */,
846BD2231EE9342700E89A1D /* SDKInterface.m */,
845D181B1C8D778400F27EB9 /* Images.xcassets */,
......@@ -315,7 +315,7 @@
files = (
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */,
BB5F3C971C1811BC00DA339D /* Main.storyboard in Resources */,
846BD2241EE9342700E89A1D /* pool_setting in Resources */,
846BD2241EE9342700E89A1D /* public_setting in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) ExtractorreportOpen;
- (void) ExtractorreportSDKOpen;
- (void)ExtractorhandleFirstOpenApp:(NSString*) path;
- (void) ResidentreportOpen;
- (void) ResidentreportSDKOpen;
- (void)ResidenthandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) ExtractorReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) ResidentReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)ExtractorStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)ResidentStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolCreateOrderInfo : ExtractorPoolBaseModel
#import "PoolSdk/ResidentPoolBaseModel.h"
@interface PoolCreateOrderInfo : ResidentPoolBaseModel
@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 *) ExtractorGetTsign ;
- (NSString *) ExtractorGetTimestamp ;
- (NSString *) ResidentGetTsign ;
- (NSString *) ResidentGetTimestamp ;
@end
......
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolLoginInfo : ExtractorPoolBaseModel
#import "PoolSdk/ResidentPoolBaseModel.h"
@interface PoolLoginInfo : ResidentPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolGzyazfInfo : ExtractorPoolBaseModel
#import "PoolSdk/ResidentPoolBaseModel.h"
@interface PoolGzyazfInfo : ResidentPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// ExtractorPoolReportInfo.h
// ResidentPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolReportInfo : ExtractorPoolBaseModel
#import "PoolSdk/ResidentPoolBaseModel.h"
@interface PoolReportInfo : ResidentPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ExtractorDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)ResidentDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ExtractorDGLogger : NSObject
@interface ResidentDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ExtractorPoolBaseModel : NSObject
@interface ResidentPoolBaseModel : NSObject
- (NSString *)ExtractorObjectToJsonString;
- (NSString *)ResidentObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
#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 ResidentIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ResidentDingDanHao;
@property(nonatomic,strong) NSDictionary* ResidentHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ResidentHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ResidentHuoWuLieBiaoView;
- (void)ResidentHuaQianView:(UIViewController*)controller ResidentHuoWuD:(NSString*)products ResidentQian:(NSString*)amount ResidentHuoWuMing:(NSString*)productName ResidentDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ResidentAllManager : NSObject
{
NSString* ResidentAPPID_;
NSString* ResidentAPPKEY_;
NSString* ResidentInviterCode_;
}
@property bool ResidentGeiWoHuaQianBa;
+ (ResidentAllManager *)ResidentInstance;
- (void)ResidentChuShiHua;
- (void)ResidentDengLu:(NSString *)ResidentAPPID : (NSString *)ResidentAPPKEY : (UIViewController *)controller;
- (void)ResidentYangShi:(NSString*)ResidentLeiXing;
- (void)ResidentQuery: (NSString *)ResidentFuWuQiID : (NSString *)ResidentNickName : (NSNumber *)ResidentAmount : (NSString *)ResidentCallBack : (UIViewController *)controller : (NSString *)ResidentServerName;
- (void)ResidentQueryOperation:(UIViewController*)controll ResidentHuoWuID:(NSString*)products ResidentJiaGe:(NSString*)amount ResidentHuoWuMing:(NSString*)productName ResidentDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ResidentExitNotification;
extern NSString * const ResidentLoginNotification;
extern NSString * const ResidentErrorNotification;
@interface ResidentHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface ExtractorMessage : NSObject
@interface ResidentInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ExtractorMessage *)getInstance;
+ (ResidentInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ExtractorMessageJM : NSObject
@interface ResidentInformationJM : NSObject
+(NSString *)ExtractorJM:(NSString *)jm;
+(NSString *)ResidentJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface ExtractorLocation : NSObject
@interface ResidentLocation : NSObject
+ (NSString *)ExtractorSKCloudServiceSetupOptionsKey;
+ (NSString *)ResidentSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ExtractorMessage.h"
#import "ResidentInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ExtractorMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ResidentMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ExtractorYouYuanJiao;
@property(assign) BOOL ResidentYouYuanJiao;
- (void)ExtractorSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ExtractorChuShiHuaWebView;
- (void)ResidentSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ResidentChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
......@@ -35,7 +35,7 @@
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>i9133public</string>
<string>sdk.uuufish.com</string>
</array>
</dict>
</array>
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Extractor/ExtractorAllManager.h"
#import "Extractor/ExtractorHuiTiaoNotification.h"
#import "Extractor/ExtractorMessage.h"
#import "Resident/ResidentAllManager.h"
#import "Resident/ResidentHuiTiaoNotification.h"
#import "Resident/ResidentInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ExtractorAppId;
NSString *ExtractorAppKey;
NSString *ResidentAppId;
NSString *ResidentAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *ExtractorAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[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];
[[ResidentAllManager ResidentInstance]ResidentChuShiHua];
[[ResidentAllManager ResidentInstance]ResidentYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ResidentLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ResidentToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *ExtractorAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
ExtractorAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ExtractorAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ExtractorAllManager ExtractorInstance]ExtractorDengLu:ExtractorAppId :ExtractorAppKey :self.controller];
ResidentAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ResidentAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ResidentAllManager ResidentInstance]ResidentDengLu:ResidentAppId :ResidentAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *ExtractorAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[ExtractorMessage getInstance]openId];
loginInfo.sign = [[ExtractorMessage getInstance] token];
loginInfo.timestamp = [[ExtractorMessage getInstance] timestamp];
loginInfo.openId = [[ResidentInformation getInstance]openId];
loginInfo.sign = [[ResidentInformation getInstance] token];
loginInfo.timestamp = [[ResidentInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ExtractorAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ExtractorCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ResidentToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *ExtractorAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ExtractorAllManager ExtractorInstance] ExtractorCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[ResidentAllManager ResidentInstance] ResidentQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[ExtractorAllManager ExtractorInstance] ExtractorCKQueryOperation:self.controller ExtractorHuoWuID:products ExtractorJiaGe:[payInfo postAmount] ExtractorHuoWuMing:[payInfo productName] ExtractorDingDanHao:queryId];
[[ResidentAllManager ResidentInstance] ResidentQueryOperation:self.controller ResidentHuoWuID:products ResidentJiaGe:[payInfo postAmount] ResidentHuoWuMing:[payInfo productName] ResidentDingDanHao:queryId];
}
}
......
新接入请参考对接文档和demo<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
2019-01-29:<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Resident.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换PoolSdk.framework ``` <br>
5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
6、``` 原pool_setting文件 替换成新 public_setting文件 ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) ExtractorreportOpen;
- (void) ExtractorreportSDKOpen;
- (void)ExtractorhandleFirstOpenApp:(NSString*) path;
- (void) ResidentreportOpen;
- (void) ResidentreportSDKOpen;
- (void)ResidenthandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) ExtractorReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) ResidentReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)ExtractorStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)ResidentStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolCreateOrderInfo : ExtractorPoolBaseModel
#import "PoolSdk/ResidentPoolBaseModel.h"
@interface PoolCreateOrderInfo : ResidentPoolBaseModel
@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 *) ExtractorGetTsign ;
- (NSString *) ExtractorGetTimestamp ;
- (NSString *) ResidentGetTsign ;
- (NSString *) ResidentGetTimestamp ;
@end
......
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolLoginInfo : ExtractorPoolBaseModel
#import "PoolSdk/ResidentPoolBaseModel.h"
@interface PoolLoginInfo : ResidentPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolGzyazfInfo : ExtractorPoolBaseModel
#import "PoolSdk/ResidentPoolBaseModel.h"
@interface PoolGzyazfInfo : ResidentPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// ExtractorPoolReportInfo.h
// ResidentPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/ExtractorPoolBaseModel.h"
@interface PoolReportInfo : ExtractorPoolBaseModel
#import "PoolSdk/ResidentPoolBaseModel.h"
@interface PoolReportInfo : ResidentPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)ExtractorDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)ResidentDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface ExtractorDGLogger : NSObject
@interface ResidentDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface ExtractorPoolBaseModel : NSObject
@interface ResidentPoolBaseModel : NSObject
- (NSString *)ExtractorObjectToJsonString;
- (NSString *)ResidentObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
#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 ResidentIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* ResidentDingDanHao;
@property(nonatomic,strong) NSDictionary* ResidentHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* ResidentHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *ResidentHuoWuLieBiaoView;
- (void)ResidentHuaQianView:(UIViewController*)controller ResidentHuoWuD:(NSString*)products ResidentQian:(NSString*)amount ResidentHuoWuMing:(NSString*)productName ResidentDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface ResidentAllManager : NSObject
{
NSString* ResidentAPPID_;
NSString* ResidentAPPKEY_;
NSString* ResidentInviterCode_;
}
@property bool ResidentGeiWoHuaQianBa;
+ (ResidentAllManager *)ResidentInstance;
- (void)ResidentChuShiHua;
- (void)ResidentDengLu:(NSString *)ResidentAPPID : (NSString *)ResidentAPPKEY : (UIViewController *)controller;
- (void)ResidentYangShi:(NSString*)ResidentLeiXing;
- (void)ResidentQuery: (NSString *)ResidentFuWuQiID : (NSString *)ResidentNickName : (NSNumber *)ResidentAmount : (NSString *)ResidentCallBack : (UIViewController *)controller : (NSString *)ResidentServerName;
- (void)ResidentQueryOperation:(UIViewController*)controll ResidentHuoWuID:(NSString*)products ResidentJiaGe:(NSString*)amount ResidentHuoWuMing:(NSString*)productName ResidentDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const ResidentExitNotification;
extern NSString * const ResidentLoginNotification;
extern NSString * const ResidentErrorNotification;
@interface ResidentHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface ExtractorMessage : NSObject
@interface ResidentInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (ExtractorMessage *)getInstance;
+ (ResidentInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface ExtractorMessageJM : NSObject
@interface ResidentInformationJM : NSObject
+(NSString *)ExtractorJM:(NSString *)jm;
+(NSString *)ResidentJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface ExtractorLocation : NSObject
@interface ResidentLocation : NSObject
+ (NSString *)ExtractorSKCloudServiceSetupOptionsKey;
+ (NSString *)ResidentSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "ExtractorMessage.h"
#import "ResidentInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface ExtractorMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface ResidentMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL ExtractorYouYuanJiao;
@property(assign) BOOL ResidentYouYuanJiao;
- (void)ExtractorSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ExtractorChuShiHuaWebView;
- (void)ResidentSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)ResidentChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Extractor/ExtractorAllManager.h"
#import "Extractor/ExtractorHuiTiaoNotification.h"
#import "Extractor/ExtractorMessage.h"
#import "Resident/ResidentAllManager.h"
#import "Resident/ResidentHuiTiaoNotification.h"
#import "Resident/ResidentInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *ExtractorAppId;
NSString *ExtractorAppKey;
NSString *ResidentAppId;
NSString *ResidentAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *ExtractorAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[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];
[[ResidentAllManager ResidentInstance]ResidentChuShiHua];
[[ResidentAllManager ResidentInstance]ResidentYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:ResidentLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"ResidentToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *ExtractorAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
ExtractorAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ExtractorAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ExtractorAllManager ExtractorInstance]ExtractorDengLu:ExtractorAppId :ExtractorAppKey :self.controller];
ResidentAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
ResidentAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[ResidentAllManager ResidentInstance]ResidentDengLu:ResidentAppId :ResidentAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *ExtractorAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[ExtractorMessage getInstance]openId];
loginInfo.sign = [[ExtractorMessage getInstance] token];
loginInfo.timestamp = [[ExtractorMessage getInstance] timestamp];
loginInfo.openId = [[ResidentInformation getInstance]openId];
loginInfo.sign = [[ResidentInformation getInstance] token];
loginInfo.timestamp = [[ResidentInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *ExtractorAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"ExtractorCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"ResidentToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *ExtractorAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[ExtractorAllManager ExtractorInstance] ExtractorCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[ResidentAllManager ResidentInstance] ResidentQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[ExtractorAllManager ExtractorInstance] ExtractorCKQueryOperation:self.controller ExtractorHuoWuID:products ExtractorJiaGe:[payInfo postAmount] ExtractorHuoWuMing:[payInfo productName] ExtractorDingDanHao:queryId];
[[ResidentAllManager ResidentInstance] ResidentQueryOperation:self.controller ResidentHuoWuID:products ResidentJiaGe:[payInfo postAmount] ResidentHuoWuMing:[payInfo productName] ResidentDingDanHao:queryId];
}
}
......