lizhihui

更新 181115 Athena 版本

Showing 59 changed files with 208 additions and 208 deletions
#import <UIKit/UIKit.h>
@interface AthenaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AthenaDingDanHao;
@property(nonatomic,strong) NSDictionary* AthenaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AthenaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AthenaHuoWuLieBiaoView;
- (void)AthenaHuaQianView:(UIViewController*)controller AthenaHuoWuD:(NSString*)products AthenaQian:(NSString*)amount AthenaHuoWuMing:(NSString*)productName AthenaDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface AthenaAllManager : NSObject
{
NSString* AthenaCKAPPID_;
NSString* AthenaCKAPPKEY_;
NSString* AthenaInviterCode_;
}
@property bool AthenaGeiWoHuaQianBa;
+ (AthenaAllManager *)AthenaInstance;
- (void)AthenaChuShiHua;
- (void)AthenaDengLu:(NSString *)AthenaCKAPPID : (NSString *)AthenaCKAPPKEY : (UIViewController *)controller;
- (void)AthenaYangShi:(NSString*)AthenaLeiXing;
- (void)AthenaCKQuery: (NSString *)AthenaFuWuQiID : (NSString *)AthenaNickName : (NSNumber *)AthenaAmount : (NSString *)AthenaCallBack : (UIViewController *)controller : (NSString *)AthenaServerName;
- (void)AthenaCKQueryOperation:(UIViewController*)controll AthenaHuoWuID:(NSString*)products AthenaJiaGe:(NSString*)amount AthenaHuoWuMing:(NSString*)productName AthenaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const AthenaCKAssetsExitNotification;
extern NSString * const AthenaCKAssetsLoginNotification;
extern NSString * const AthenaCKAssetsErrorNotification;
@interface AthenaHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface PepsiLocation : NSObject
@interface AthenaLocation : NSObject
+ (NSString *)PepsiSKCloudServiceSetupOptionsKey;
+ (NSString *)AthenaSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "PepsiMessage.h"
#import "AthenaMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface PepsiMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface AthenaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL PepsiYouYuanJiao;
@property(assign) BOOL AthenaYouYuanJiao;
- (void)PepsiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)PepsiChuShiHuaWebView;
- (void)AthenaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AthenaChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface PepsiMessage : NSObject
@interface AthenaMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (PepsiMessage *)getInstance;
+ (AthenaMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface PepsiMessageJM : NSObject
@interface AthenaMessageJM : NSObject
+(NSString *)PepsiJM:(NSString *)jm;
+(NSString *)AthenaJM:(NSString *)jm;
@end
......
......@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
263A4CBB219AC90000DE9B28 /* PepsiSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */; };
26A4D548219BC8D4008B64B5 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D547219BC8D4008B64B5 /* PoolSdk.framework */; };
26A4D54A219D11B0008B64B5 /* AthenaSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D549219D11B0008B64B5 /* AthenaSDK.framework */; };
26A4D54C219D11BD008B64B5 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D54B219D11BD008B64B5 /* PoolSdk.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 */; };
......@@ -59,8 +59,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PepsiSDK.framework; sourceTree = "<group>"; };
26A4D547219BC8D4008B64B5 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
26A4D549219D11B0008B64B5 /* AthenaSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AthenaSDK.framework; sourceTree = "<group>"; };
26A4D54B219D11BD008B64B5 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.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>"; };
......@@ -108,15 +108,15 @@
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
26A4D54A219D11B0008B64B5 /* AthenaSDK.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
263A4CBB219AC90000DE9B28 /* PepsiSDK.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
26A4D548219BC8D4008B64B5 /* PoolSdk.framework in Frameworks */,
26A4D54C219D11BD008B64B5 /* PoolSdk.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */,
26A4D549219D11B0008B64B5 /* AthenaSDK.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......@@ -191,7 +191,7 @@
BB5F3C8A1C1811BC00DA339D /* Demo */ = {
isa = PBXGroup;
children = (
26A4D547219BC8D4008B64B5 /* PoolSdk.framework */,
26A4D54B219D11BD008B64B5 /* PoolSdk.framework */,
8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */,
8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */,
8484E4F31EE7E0DC00B402D1 /* ViewController.h */,
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface PepsiDGLogger : NSObject
@interface AthenaDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PepsiPoolBaseModel : NSObject
@interface AthenaPoolBaseModel : NSObject
- (NSString *)PepsiObjectToJsonString;
- (NSString *)AthenaObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) PepsireportOpen;
- (void) PepsireportSDKOpen;
- (void)PepsihandleFirstOpenApp:(NSString*) path;
- (void) AthenareportOpen;
- (void) AthenareportSDKOpen;
- (void)AthenahandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) PepsiReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) AthenaReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)PepsiStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)AthenaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolCreateOrderInfo : PepsiPoolBaseModel
#import "PoolSdk/AthenaPoolBaseModel.h"
@interface PoolCreateOrderInfo : AthenaPoolBaseModel
@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 *) PepsiGetTsign ;
- (NSString *) PepsiGetTimestamp ;
- (NSString *) AthenaGetTsign ;
- (NSString *) AthenaGetTimestamp ;
@end
......
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolLoginInfo : PepsiPoolBaseModel
#import "PoolSdk/AthenaPoolBaseModel.h"
@interface PoolLoginInfo : AthenaPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolGzyazfInfo : PepsiPoolBaseModel
#import "PoolSdk/AthenaPoolBaseModel.h"
@interface PoolGzyazfInfo : AthenaPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// PepsiPoolReportInfo.h
// AthenaPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolReportInfo : PepsiPoolBaseModel
#import "PoolSdk/AthenaPoolBaseModel.h"
@interface PoolReportInfo : AthenaPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)PepsiDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)AthenaDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
@interface PepsiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* PepsiDingDanHao;
@property(nonatomic,strong) NSDictionary* PepsiHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* PepsiHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *PepsiHuoWuLieBiaoView;
- (void)PepsiHuaQianView:(UIViewController*)controller PepsiHuoWuD:(NSString*)products PepsiQian:(NSString*)amount PepsiHuoWuMing:(NSString*)productName PepsiDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface PepsiAllManager : NSObject
{
NSString* PepsiCKAPPID_;
NSString* PepsiCKAPPKEY_;
NSString* PepsiInviterCode_;
}
@property bool PepsiGeiWoHuaQianBa;
+ (PepsiAllManager *)PepsiInstance;
- (void)PepsiChuShiHua;
- (void)PepsiDengLu:(NSString *)PepsiCKAPPID : (NSString *)PepsiCKAPPKEY : (UIViewController *)controller;
- (void)PepsiYangShi:(NSString*)PepsiLeiXing;
- (void)PepsiCKQuery: (NSString *)PepsiFuWuQiID : (NSString *)PepsiNickName : (NSNumber *)PepsiAmount : (NSString *)PepsiCallBack : (UIViewController *)controller : (NSString *)PepsiServerName;
- (void)PepsiCKQueryOperation:(UIViewController*)controll PepsiHuoWuID:(NSString*)products PepsiJiaGe:(NSString*)amount PepsiHuoWuMing:(NSString*)productName PepsiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const PepsiCKAssetsExitNotification;
extern NSString * const PepsiCKAssetsLoginNotification;
extern NSString * const PepsiCKAssetsErrorNotification;
@interface PepsiHuiTiaoNotification : NSObject
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "PepsiSDK/PepsiAllManager.h"
#import "PepsiSDK/PepsiHuiTiaoNotification.h"
#import "PepsiSDK/PepsiMessage.h"
#import "AthenaSDK/AthenaAllManager.h"
#import "AthenaSDK/AthenaHuiTiaoNotification.h"
#import "AthenaSDK/AthenaMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *PepsiSDKAppId;
NSString *PepsiSDKAppKey;
NSString *AthenaSDKAppId;
NSString *AthenaSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *PepsiSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[PepsiAllManager PepsiInstance]PepsiChuShiHua];
[[PepsiAllManager PepsiInstance]PepsiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PepsiCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PepsiCKAssetsToolCallBack" object:nil];
[[AthenaAllManager AthenaInstance]AthenaChuShiHua];
[[AthenaAllManager AthenaInstance]AthenaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AthenaCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AthenaCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *PepsiSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
PepsiSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
PepsiSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[PepsiAllManager PepsiInstance]PepsiDengLu:PepsiSDKAppId :PepsiSDKAppKey :self.controller];
AthenaSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
AthenaSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[AthenaAllManager AthenaInstance]AthenaDengLu:AthenaSDKAppId :AthenaSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *PepsiSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[PepsiMessage getInstance]openId];
loginInfo.sign = [[PepsiMessage getInstance] token];
loginInfo.timestamp = [[PepsiMessage getInstance] timestamp];
loginInfo.openId = [[AthenaMessage getInstance]openId];
loginInfo.sign = [[AthenaMessage getInstance] token];
loginInfo.timestamp = [[AthenaMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *PepsiSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"PepsiCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"AthenaCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *PepsiSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[PepsiAllManager PepsiInstance] PepsiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[AthenaAllManager AthenaInstance] AthenaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[PepsiAllManager PepsiInstance] PepsiCKQueryOperation:self.controller PepsiHuoWuID:products PepsiJiaGe:[payInfo postAmount] PepsiHuoWuMing:[payInfo productName] PepsiDingDanHao:queryId];
[[AthenaAllManager AthenaInstance] AthenaCKQueryOperation:self.controller AthenaHuoWuID:products AthenaJiaGe:[payInfo postAmount] AthenaHuoWuMing:[payInfo productName] AthenaDingDanHao:queryId];
}
}
......
新接入请参考对接文档和demo<br>
2018-11-14:<br>
2018-11-15:<br>
1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br>
2、引入 ``` PepsiSDK.framework ``` <br>
2、引入 ``` AthenaSDK.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 PepsiDGLogger : NSObject
@interface AthenaDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PepsiPoolBaseModel : NSObject
@interface AthenaPoolBaseModel : NSObject
- (NSString *)PepsiObjectToJsonString;
- (NSString *)AthenaObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) PepsireportOpen;
- (void) PepsireportSDKOpen;
- (void)PepsihandleFirstOpenApp:(NSString*) path;
- (void) AthenareportOpen;
- (void) AthenareportSDKOpen;
- (void)AthenahandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) PepsiReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) AthenaReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
- (void)PepsiStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)AthenaStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolCreateOrderInfo : PepsiPoolBaseModel
#import "PoolSdk/AthenaPoolBaseModel.h"
@interface PoolCreateOrderInfo : AthenaPoolBaseModel
@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 *) PepsiGetTsign ;
- (NSString *) PepsiGetTimestamp ;
- (NSString *) AthenaGetTsign ;
- (NSString *) AthenaGetTimestamp ;
@end
......
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolLoginInfo : PepsiPoolBaseModel
#import "PoolSdk/AthenaPoolBaseModel.h"
@interface PoolLoginInfo : AthenaPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolGzyazfInfo : PepsiPoolBaseModel
#import "PoolSdk/AthenaPoolBaseModel.h"
@interface PoolGzyazfInfo : AthenaPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// PepsiPoolReportInfo.h
// AthenaPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolReportInfo : PepsiPoolBaseModel
#import "PoolSdk/AthenaPoolBaseModel.h"
@interface PoolReportInfo : AthenaPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)PepsiDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)AthenaDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
@interface AthenaIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AthenaDingDanHao;
@property(nonatomic,strong) NSDictionary* AthenaHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AthenaHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AthenaHuoWuLieBiaoView;
- (void)AthenaHuaQianView:(UIViewController*)controller AthenaHuoWuD:(NSString*)products AthenaQian:(NSString*)amount AthenaHuoWuMing:(NSString*)productName AthenaDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface AthenaAllManager : NSObject
{
NSString* AthenaCKAPPID_;
NSString* AthenaCKAPPKEY_;
NSString* AthenaInviterCode_;
}
@property bool AthenaGeiWoHuaQianBa;
+ (AthenaAllManager *)AthenaInstance;
- (void)AthenaChuShiHua;
- (void)AthenaDengLu:(NSString *)AthenaCKAPPID : (NSString *)AthenaCKAPPKEY : (UIViewController *)controller;
- (void)AthenaYangShi:(NSString*)AthenaLeiXing;
- (void)AthenaCKQuery: (NSString *)AthenaFuWuQiID : (NSString *)AthenaNickName : (NSNumber *)AthenaAmount : (NSString *)AthenaCallBack : (UIViewController *)controller : (NSString *)AthenaServerName;
- (void)AthenaCKQueryOperation:(UIViewController*)controll AthenaHuoWuID:(NSString*)products AthenaJiaGe:(NSString*)amount AthenaHuoWuMing:(NSString*)productName AthenaDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const AthenaCKAssetsExitNotification;
extern NSString * const AthenaCKAssetsLoginNotification;
extern NSString * const AthenaCKAssetsErrorNotification;
@interface AthenaHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface PepsiLocation : NSObject
@interface AthenaLocation : NSObject
+ (NSString *)PepsiSKCloudServiceSetupOptionsKey;
+ (NSString *)AthenaSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "PepsiMessage.h"
#import "AthenaMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface PepsiMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface AthenaMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL PepsiYouYuanJiao;
@property(assign) BOOL AthenaYouYuanJiao;
- (void)PepsiSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)PepsiChuShiHuaWebView;
- (void)AthenaSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AthenaChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface PepsiMessage : NSObject
@interface AthenaMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (PepsiMessage *)getInstance;
+ (AthenaMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface PepsiMessageJM : NSObject
@interface AthenaMessageJM : NSObject
+(NSString *)PepsiJM:(NSString *)jm;
+(NSString *)AthenaJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface PepsiIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* PepsiDingDanHao;
@property(nonatomic,strong) NSDictionary* PepsiHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* PepsiHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *PepsiHuoWuLieBiaoView;
- (void)PepsiHuaQianView:(UIViewController*)controller PepsiHuoWuD:(NSString*)products PepsiQian:(NSString*)amount PepsiHuoWuMing:(NSString*)productName PepsiDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface PepsiAllManager : NSObject
{
NSString* PepsiCKAPPID_;
NSString* PepsiCKAPPKEY_;
NSString* PepsiInviterCode_;
}
@property bool PepsiGeiWoHuaQianBa;
+ (PepsiAllManager *)PepsiInstance;
- (void)PepsiChuShiHua;
- (void)PepsiDengLu:(NSString *)PepsiCKAPPID : (NSString *)PepsiCKAPPKEY : (UIViewController *)controller;
- (void)PepsiYangShi:(NSString*)PepsiLeiXing;
- (void)PepsiCKQuery: (NSString *)PepsiFuWuQiID : (NSString *)PepsiNickName : (NSNumber *)PepsiAmount : (NSString *)PepsiCallBack : (UIViewController *)controller : (NSString *)PepsiServerName;
- (void)PepsiCKQueryOperation:(UIViewController*)controll PepsiHuoWuID:(NSString*)products PepsiJiaGe:(NSString*)amount PepsiHuoWuMing:(NSString*)productName PepsiDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const PepsiCKAssetsExitNotification;
extern NSString * const PepsiCKAssetsLoginNotification;
extern NSString * const PepsiCKAssetsErrorNotification;
@interface PepsiHuiTiaoNotification : NSObject
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "PepsiSDK/PepsiAllManager.h"
#import "PepsiSDK/PepsiHuiTiaoNotification.h"
#import "PepsiSDK/PepsiMessage.h"
#import "AthenaSDK/AthenaAllManager.h"
#import "AthenaSDK/AthenaHuiTiaoNotification.h"
#import "AthenaSDK/AthenaMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *PepsiSDKAppId;
NSString *PepsiSDKAppKey;
NSString *AthenaSDKAppId;
NSString *AthenaSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *PepsiSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[PepsiAllManager PepsiInstance]PepsiChuShiHua];
[[PepsiAllManager PepsiInstance]PepsiYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PepsiCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PepsiCKAssetsToolCallBack" object:nil];
[[AthenaAllManager AthenaInstance]AthenaChuShiHua];
[[AthenaAllManager AthenaInstance]AthenaYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AthenaCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AthenaCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *PepsiSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
PepsiSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
PepsiSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[PepsiAllManager PepsiInstance]PepsiDengLu:PepsiSDKAppId :PepsiSDKAppKey :self.controller];
AthenaSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
AthenaSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[AthenaAllManager AthenaInstance]AthenaDengLu:AthenaSDKAppId :AthenaSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *PepsiSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[PepsiMessage getInstance]openId];
loginInfo.sign = [[PepsiMessage getInstance] token];
loginInfo.timestamp = [[PepsiMessage getInstance] timestamp];
loginInfo.openId = [[AthenaMessage getInstance]openId];
loginInfo.sign = [[AthenaMessage getInstance] token];
loginInfo.timestamp = [[AthenaMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *PepsiSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"PepsiCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"AthenaCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *PepsiSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[PepsiAllManager PepsiInstance] PepsiCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[AthenaAllManager AthenaInstance] AthenaCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[PepsiAllManager PepsiInstance] PepsiCKQueryOperation:self.controller PepsiHuoWuID:products PepsiJiaGe:[payInfo postAmount] PepsiHuoWuMing:[payInfo productName] PepsiDingDanHao:queryId];
[[AthenaAllManager AthenaInstance] AthenaCKQueryOperation:self.controller AthenaHuoWuID:products AthenaJiaGe:[payInfo postAmount] AthenaHuoWuMing:[payInfo productName] AthenaDingDanHao:queryId];
}
}
......