lizhihui

更新 190104 版本2

Showing 62 changed files with 233 additions and 233 deletions
No preview for this file type
#import <UIKit/UIKit.h>
@interface AphelionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AphelionDingDanHao;
@property(nonatomic,strong) NSDictionary* AphelionHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AphelionHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AphelionHuoWuLieBiaoView;
- (void)AphelionHuaQianView:(UIViewController*)controller AphelionHuoWuD:(NSString*)products AphelionQian:(NSString*)amount AphelionHuoWuMing:(NSString*)productName AphelionDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface AphelionAllManager : NSObject
{
NSString* AphelionCKAPPID_;
NSString* AphelionCKAPPKEY_;
NSString* AphelionInviterCode_;
}
@property bool AphelionGeiWoHuaQianBa;
+ (AphelionAllManager *)AphelionInstance;
- (void)AphelionChuShiHua;
- (void)AphelionDengLu:(NSString *)AphelionCKAPPID : (NSString *)AphelionCKAPPKEY : (UIViewController *)controller;
- (void)AphelionYangShi:(NSString*)AphelionLeiXing;
- (void)AphelionCKQuery: (NSString *)AphelionFuWuQiID : (NSString *)AphelionNickName : (NSNumber *)AphelionAmount : (NSString *)AphelionCallBack : (UIViewController *)controller : (NSString *)AphelionServerName;
- (void)AphelionCKQueryOperation:(UIViewController*)controll AphelionHuoWuID:(NSString*)products AphelionJiaGe:(NSString*)amount AphelionHuoWuMing:(NSString*)productName AphelionDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const AphelionCKAssetsExitNotification;
extern NSString * const AphelionCKAssetsLoginNotification;
extern NSString * const AphelionCKAssetsErrorNotification;
@interface AphelionHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface AphelionHungry : NSObject
+(void)AphelionQsad;
-(void)AphelionQsad123;
+(void)AphelionQsagfhd;
-(void)AphelionQsavbnd;
+(void)AphelionQsavbnd;
-(void)AphelionQsafgd;
+(void)AphelionQsiuad;
@end
#import <UIKit/UIKit.h>
@interface OdiumLocation : NSObject
@interface AphelionLocation : NSObject
+ (NSString *)OdiumSKCloudServiceSetupOptionsKey;
+ (NSString *)AphelionSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "OdiumMessage.h"
#import "AphelionMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface OdiumMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface AphelionMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL OdiumYouYuanJiao;
@property(assign) BOOL AphelionYouYuanJiao;
- (void)OdiumSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)OdiumChuShiHuaWebView;
- (void)AphelionSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AphelionChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface OdiumMessage : NSObject
@interface AphelionMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (OdiumMessage *)getInstance;
+ (AphelionMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface OdiumMessageJM : NSObject
@interface AphelionMessageJM : NSObject
+(NSString *)OdiumJM:(NSString *)jm;
+(NSString *)AphelionJM:(NSString *)jm;
@end
......
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
26463C6121DF60560056B2C5 /* Odium.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26463C6021DF60550056B2C5 /* Odium.framework */; };
26463C6321DF643E0056B2C5 /* Aphelion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26463C6221DF643E0056B2C5 /* Aphelion.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
26463C6021DF60550056B2C5 /* Odium.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Odium.framework; sourceTree = "<group>"; };
26463C6221DF643E0056B2C5 /* Aphelion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Aphelion.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.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>"; };
......@@ -105,10 +105,10 @@
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
26463C6121DF60560056B2C5 /* Odium.framework in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
26463C6321DF643E0056B2C5 /* Aphelion.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26463C6021DF60550056B2C5 /* Odium.framework */,
26463C6221DF643E0056B2C5 /* Aphelion.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibao_setting */,
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface OdiumHaiBaoJuheBaseModel : NSObject
@interface AphelionHaiBaoJuheBaseModel : NSObject
- (NSString *)OdiumHaiBaoJuheObjectToJsonString;
- (NSString *)AphelionHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface OdiumHaiBaoJuheDGLogger : NSObject
@interface AphelionHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) OdiumHaiBaoJuhereportOpen;
- (void) OdiumHaiBaoJuhereportSDKOpen;
- (void)OdiumHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) AphelionHaiBaoJuhereportOpen;
- (void) AphelionHaiBaoJuhereportSDKOpen;
- (void)AphelionHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) OdiumHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) AphelionHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)OdiumHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)AphelionHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : OdiumHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : AphelionHaiBaoJuheBaseModel
@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 *) OdiumHaiBaoJuheGetTsign ;
- (NSString *) OdiumHaiBaoJuheGetTimestamp ;
- (NSString *) AphelionHaiBaoJuheGetTsign ;
- (NSString *) AphelionHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : OdiumHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : AphelionHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : OdiumHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : AphelionHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// OdiumHaiBaoJuheReportInfo.h
// AphelionHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : OdiumHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : AphelionHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)OdiumHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)AphelionHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
@interface OdiumIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* OdiumDingDanHao;
@property(nonatomic,strong) NSDictionary* OdiumHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* OdiumHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *OdiumHuoWuLieBiaoView;
- (void)OdiumHuaQianView:(UIViewController*)controller OdiumHuoWuD:(NSString*)products OdiumQian:(NSString*)amount OdiumHuoWuMing:(NSString*)productName OdiumDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface OdiumAllManager : NSObject
{
NSString* OdiumCKAPPID_;
NSString* OdiumCKAPPKEY_;
NSString* OdiumInviterCode_;
}
@property bool OdiumGeiWoHuaQianBa;
+ (OdiumAllManager *)OdiumInstance;
- (void)OdiumChuShiHua;
- (void)OdiumDengLu:(NSString *)OdiumCKAPPID : (NSString *)OdiumCKAPPKEY : (UIViewController *)controller;
- (void)OdiumYangShi:(NSString*)OdiumLeiXing;
- (void)OdiumCKQuery: (NSString *)OdiumFuWuQiID : (NSString *)OdiumNickName : (NSNumber *)OdiumAmount : (NSString *)OdiumCallBack : (UIViewController *)controller : (NSString *)OdiumServerName;
- (void)OdiumCKQueryOperation:(UIViewController*)controll OdiumHuoWuID:(NSString*)products OdiumJiaGe:(NSString*)amount OdiumHuoWuMing:(NSString*)productName OdiumDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const OdiumCKAssetsExitNotification;
extern NSString * const OdiumCKAssetsLoginNotification;
extern NSString * const OdiumCKAssetsErrorNotification;
@interface OdiumHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface OdiumHungry : NSObject
+(void)OdiumQsad;
-(void)OdiumQsad123;
+(void)OdiumQsagfhd;
-(void)OdiumQsavbnd;
+(void)OdiumQsavbnd;
-(void)OdiumQsafgd;
+(void)OdiumQsiuad;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Odium/OdiumAllManager.h"
#import "Odium/OdiumHuiTiaoNotification.h"
#import "Odium/OdiumMessage.h"
#import "Aphelion/AphelionAllManager.h"
#import "Aphelion/AphelionHuiTiaoNotification.h"
#import "Aphelion/AphelionMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *OdiumAppId;
NSString *OdiumAppKey;
NSString *AphelionAppId;
NSString *AphelionAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *OdiumAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[OdiumAllManager OdiumInstance]OdiumChuShiHua];
[[OdiumAllManager OdiumInstance]OdiumYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OdiumCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OdiumCKAssetsToolCallBack" object:nil];
[[AphelionAllManager AphelionInstance]AphelionChuShiHua];
[[AphelionAllManager AphelionInstance]AphelionYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AphelionCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AphelionCKAssetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *OdiumAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
OdiumAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
OdiumAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[OdiumAllManager OdiumInstance]OdiumDengLu:OdiumAppId :OdiumAppKey :self.controller];
AphelionAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
AphelionAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[AphelionAllManager AphelionInstance]AphelionDengLu:AphelionAppId :AphelionAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *OdiumAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[OdiumMessage getInstance]openId];
loginInfo.sign = [[OdiumMessage getInstance] token];
loginInfo.timestamp = [[OdiumMessage getInstance] timestamp];
loginInfo.openId = [[AphelionMessage getInstance]openId];
loginInfo.sign = [[AphelionMessage getInstance] token];
loginInfo.timestamp = [[AphelionMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *OdiumAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"OdiumCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"AphelionCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *OdiumAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[OdiumAllManager OdiumInstance] OdiumCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[AphelionAllManager AphelionInstance] AphelionCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[OdiumAllManager OdiumInstance] OdiumCKQueryOperation:self.controller OdiumHuoWuID:products OdiumJiaGe:[payInfo postAmount] OdiumHuoWuMing:[payInfo productName] OdiumDingDanHao:queryId];
[[AphelionAllManager AphelionInstance] AphelionCKQueryOperation:self.controller AphelionHuoWuID:products AphelionJiaGe:[payInfo postAmount] AphelionHuoWuMing:[payInfo productName] AphelionDingDanHao:queryId];
}
}
......
......@@ -12,6 +12,6 @@
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月04日版本方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Odium.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Aphelion.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
\ No newline at end of file
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface OdiumHaiBaoJuheBaseModel : NSObject
@interface AphelionHaiBaoJuheBaseModel : NSObject
- (NSString *)OdiumHaiBaoJuheObjectToJsonString;
- (NSString *)AphelionHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface OdiumHaiBaoJuheDGLogger : NSObject
@interface AphelionHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) OdiumHaiBaoJuhereportOpen;
- (void) OdiumHaiBaoJuhereportSDKOpen;
- (void)OdiumHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) AphelionHaiBaoJuhereportOpen;
- (void) AphelionHaiBaoJuhereportSDKOpen;
- (void)AphelionHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) OdiumHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) AphelionHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)OdiumHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)AphelionHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : OdiumHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : AphelionHaiBaoJuheBaseModel
@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 *) OdiumHaiBaoJuheGetTsign ;
- (NSString *) OdiumHaiBaoJuheGetTimestamp ;
- (NSString *) AphelionHaiBaoJuheGetTsign ;
- (NSString *) AphelionHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : OdiumHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : AphelionHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : OdiumHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : AphelionHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// OdiumHaiBaoJuheReportInfo.h
// AphelionHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : OdiumHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : AphelionHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)OdiumHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)AphelionHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <UIKit/UIKit.h>
@interface AphelionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AphelionDingDanHao;
@property(nonatomic,strong) NSDictionary* AphelionHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AphelionHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AphelionHuoWuLieBiaoView;
- (void)AphelionHuaQianView:(UIViewController*)controller AphelionHuoWuD:(NSString*)products AphelionQian:(NSString*)amount AphelionHuoWuMing:(NSString*)productName AphelionDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface AphelionAllManager : NSObject
{
NSString* AphelionCKAPPID_;
NSString* AphelionCKAPPKEY_;
NSString* AphelionInviterCode_;
}
@property bool AphelionGeiWoHuaQianBa;
+ (AphelionAllManager *)AphelionInstance;
- (void)AphelionChuShiHua;
- (void)AphelionDengLu:(NSString *)AphelionCKAPPID : (NSString *)AphelionCKAPPKEY : (UIViewController *)controller;
- (void)AphelionYangShi:(NSString*)AphelionLeiXing;
- (void)AphelionCKQuery: (NSString *)AphelionFuWuQiID : (NSString *)AphelionNickName : (NSNumber *)AphelionAmount : (NSString *)AphelionCallBack : (UIViewController *)controller : (NSString *)AphelionServerName;
- (void)AphelionCKQueryOperation:(UIViewController*)controll AphelionHuoWuID:(NSString*)products AphelionJiaGe:(NSString*)amount AphelionHuoWuMing:(NSString*)productName AphelionDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const AphelionCKAssetsExitNotification;
extern NSString * const AphelionCKAssetsLoginNotification;
extern NSString * const AphelionCKAssetsErrorNotification;
@interface AphelionHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface AphelionHungry : NSObject
+(void)AphelionQsad;
-(void)AphelionQsad123;
+(void)AphelionQsagfhd;
-(void)AphelionQsavbnd;
+(void)AphelionQsavbnd;
-(void)AphelionQsafgd;
+(void)AphelionQsiuad;
@end
#import <UIKit/UIKit.h>
@interface OdiumLocation : NSObject
@interface AphelionLocation : NSObject
+ (NSString *)OdiumSKCloudServiceSetupOptionsKey;
+ (NSString *)AphelionSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "OdiumMessage.h"
#import "AphelionMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface OdiumMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface AphelionMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL OdiumYouYuanJiao;
@property(assign) BOOL AphelionYouYuanJiao;
- (void)OdiumSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)OdiumChuShiHuaWebView;
- (void)AphelionSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AphelionChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface OdiumMessage : NSObject
@interface AphelionMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (OdiumMessage *)getInstance;
+ (AphelionMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface OdiumMessageJM : NSObject
@interface AphelionMessageJM : NSObject
+(NSString *)OdiumJM:(NSString *)jm;
+(NSString *)AphelionJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface OdiumIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* OdiumDingDanHao;
@property(nonatomic,strong) NSDictionary* OdiumHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* OdiumHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *OdiumHuoWuLieBiaoView;
- (void)OdiumHuaQianView:(UIViewController*)controller OdiumHuoWuD:(NSString*)products OdiumQian:(NSString*)amount OdiumHuoWuMing:(NSString*)productName OdiumDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface OdiumAllManager : NSObject
{
NSString* OdiumCKAPPID_;
NSString* OdiumCKAPPKEY_;
NSString* OdiumInviterCode_;
}
@property bool OdiumGeiWoHuaQianBa;
+ (OdiumAllManager *)OdiumInstance;
- (void)OdiumChuShiHua;
- (void)OdiumDengLu:(NSString *)OdiumCKAPPID : (NSString *)OdiumCKAPPKEY : (UIViewController *)controller;
- (void)OdiumYangShi:(NSString*)OdiumLeiXing;
- (void)OdiumCKQuery: (NSString *)OdiumFuWuQiID : (NSString *)OdiumNickName : (NSNumber *)OdiumAmount : (NSString *)OdiumCallBack : (UIViewController *)controller : (NSString *)OdiumServerName;
- (void)OdiumCKQueryOperation:(UIViewController*)controll OdiumHuoWuID:(NSString*)products OdiumJiaGe:(NSString*)amount OdiumHuoWuMing:(NSString*)productName OdiumDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const OdiumCKAssetsExitNotification;
extern NSString * const OdiumCKAssetsLoginNotification;
extern NSString * const OdiumCKAssetsErrorNotification;
@interface OdiumHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface OdiumHungry : NSObject
+(void)OdiumQsad;
-(void)OdiumQsad123;
+(void)OdiumQsagfhd;
-(void)OdiumQsavbnd;
+(void)OdiumQsavbnd;
-(void)OdiumQsafgd;
+(void)OdiumQsiuad;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Odium/OdiumAllManager.h"
#import "Odium/OdiumHuiTiaoNotification.h"
#import "Odium/OdiumMessage.h"
#import "Aphelion/AphelionAllManager.h"
#import "Aphelion/AphelionHuiTiaoNotification.h"
#import "Aphelion/AphelionMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *OdiumAppId;
NSString *OdiumAppKey;
NSString *AphelionAppId;
NSString *AphelionAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *OdiumAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[OdiumAllManager OdiumInstance]OdiumChuShiHua];
[[OdiumAllManager OdiumInstance]OdiumYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OdiumCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OdiumCKAssetsToolCallBack" object:nil];
[[AphelionAllManager AphelionInstance]AphelionChuShiHua];
[[AphelionAllManager AphelionInstance]AphelionYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AphelionCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AphelionCKAssetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *OdiumAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
OdiumAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
OdiumAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[OdiumAllManager OdiumInstance]OdiumDengLu:OdiumAppId :OdiumAppKey :self.controller];
AphelionAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
AphelionAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[AphelionAllManager AphelionInstance]AphelionDengLu:AphelionAppId :AphelionAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *OdiumAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[OdiumMessage getInstance]openId];
loginInfo.sign = [[OdiumMessage getInstance] token];
loginInfo.timestamp = [[OdiumMessage getInstance] timestamp];
loginInfo.openId = [[AphelionMessage getInstance]openId];
loginInfo.sign = [[AphelionMessage getInstance] token];
loginInfo.timestamp = [[AphelionMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *OdiumAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"OdiumCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"AphelionCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *OdiumAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[OdiumAllManager OdiumInstance] OdiumCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[AphelionAllManager AphelionInstance] AphelionCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[OdiumAllManager OdiumInstance] OdiumCKQueryOperation:self.controller OdiumHuoWuID:products OdiumJiaGe:[payInfo postAmount] OdiumHuoWuMing:[payInfo productName] OdiumDingDanHao:queryId];
[[AphelionAllManager AphelionInstance] AphelionCKQueryOperation:self.controller AphelionHuoWuID:products AphelionJiaGe:[payInfo postAmount] AphelionHuoWuMing:[payInfo productName] AphelionDingDanHao:queryId];
}
}
......