lizhihui

更新 190125 版本

Showing 63 changed files with 205 additions and 235 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
2692FA4E21F57C7500371736 /* Knight.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4D21F57C7500371736 /* Knight.framework */; };
2692FA5021FAC0A900371736 /* Railway.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4F21FAC0A900371736 /* Railway.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 */
2692FA4D21F57C7500371736 /* Knight.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Knight.framework; sourceTree = "<group>"; };
2692FA4F21FAC0A900371736 /* Railway.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Railway.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>"; };
......@@ -103,9 +103,9 @@
buildActionMask = 2147483647;
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
2692FA4E21F57C7500371736 /* Knight.framework in Frameworks */,
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
2692FA5021FAC0A900371736 /* Railway.framework in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
2692FA4D21F57C7500371736 /* Knight.framework */,
2692FA4F21FAC0A900371736 /* Railway.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibao_setting */,
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) KnightHaiBaoJuhereportOpen;
- (void) KnightHaiBaoJuhereportSDKOpen;
- (void)KnightHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) RailwayHaiBaoJuhereportOpen;
- (void) RailwayHaiBaoJuhereportSDKOpen;
- (void)RailwayHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) KnightHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) RailwayHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)KnightHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)RailwayHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : KnightHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : RailwayHaiBaoJuheBaseModel
@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 *) KnightHaiBaoJuheGetTsign ;
- (NSString *) KnightHaiBaoJuheGetTimestamp ;
- (NSString *) RailwayHaiBaoJuheGetTsign ;
- (NSString *) RailwayHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : KnightHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : RailwayHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : KnightHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : RailwayHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// KnightHaiBaoJuheReportInfo.h
// RailwayHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : KnightHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : RailwayHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)KnightHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)RailwayHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface KnightHaiBaoJuheBaseModel : NSObject
@interface RailwayHaiBaoJuheBaseModel : NSObject
- (NSString *)KnightHaiBaoJuheObjectToJsonString;
- (NSString *)RailwayHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface KnightHaiBaoJuheDGLogger : NSObject
@interface RailwayHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -64,7 +64,7 @@ NSString* sdkUserId = @"";
NSLog(@"收到登陆信息public timestamp:%@", [loginInfo timestamp]);
NSLog(@"userType:%@",[loginInfo userType]);
}else{
NSLog(@"%@",[result description]);
NSLog(@"登录失败:%@",[result description]);
}
}
break;
......
#import <UIKit/UIKit.h>
@interface KnightIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* KnightDingDanHao;
@property(nonatomic,strong) NSDictionary* KnightHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* KnightHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *KnightHuoWuLieBiaoView;
- (void)KnightHuaQianView:(UIViewController*)controller KnightHuoWuD:(NSString*)products KnightQian:(NSString*)amount KnightHuoWuMing:(NSString*)productName KnightDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface KnightAllManager : NSObject
{
NSString* KnightCKAPPID_;
NSString* KnightCKAPPKEY_;
NSString* KnightInviterCode_;
}
@property bool KnightGeiWoHuaQianBa;
+ (KnightAllManager *)KnightInstance;
- (void)KnightChuShiHua;
- (void)KnightDengLu:(NSString *)KnightCKAPPID : (NSString *)KnightCKAPPKEY : (UIViewController *)controller;
- (void)KnightYangShi:(NSString*)KnightLeiXing;
- (void)KnightCKQuery: (NSString *)KnightFuWuQiID : (NSString *)KnightNickName : (NSNumber *)KnightAmount : (NSString *)KnightCallBack : (UIViewController *)controller : (NSString *)KnightServerName;
- (void)KnightCKQueryOperation:(UIViewController*)controll KnightHuoWuID:(NSString*)products KnightJiaGe:(NSString*)amount KnightHuoWuMing:(NSString*)productName KnightDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const KnightCKAssetsExitNotification;
extern NSString * const KnightCKAssetsLoginNotification;
extern NSString * const KnightCKAssetsErrorNotification;
@interface KnightHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface KnightHungry : NSObject
+(void)KnightQsad;
-(void)KnightQsad123;
+(void)KnightQsagfhd;
-(void)KnightQsavbnd;
+(void)KnightQsavbnd;
-(void)KnightQsafgd;
+(void)KnightQsiuad;
@end
#import <UIKit/UIKit.h>
@interface RailwayIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* RailwayDingDanHao;
@property(nonatomic,strong) NSDictionary* RailwayHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* RailwayHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *RailwayHuoWuLieBiaoView;
- (void)RailwayHuaQianView:(UIViewController*)controller RailwayHuoWuD:(NSString*)products RailwayQian:(NSString*)amount RailwayHuoWuMing:(NSString*)productName RailwayDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface RailwayAllManager : NSObject
{
NSString* RailwayAPPID_;
NSString* RailwayAPPKEY_;
NSString* RailwayInviterCode_;
}
@property bool RailwayGeiWoHuaQianBa;
+ (RailwayAllManager *)RailwayInstance;
- (void)RailwayChuShiHua;
- (void)RailwayDengLu:(NSString *)RailwayAPPID : (NSString *)RailwayAPPKEY : (UIViewController *)controller;
- (void)RailwayYangShi:(NSString*)RailwayLeiXing;
- (void)RailwayQuery: (NSString *)RailwayFuWuQiID : (NSString *)RailwayNickName : (NSNumber *)RailwayAmount : (NSString *)RailwayCallBack : (UIViewController *)controller : (NSString *)RailwayServerName;
- (void)RailwayQueryOperation:(UIViewController*)controll RailwayHuoWuID:(NSString*)products RailwayJiaGe:(NSString*)amount RailwayHuoWuMing:(NSString*)productName RailwayDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const RailwayExitNotification;
extern NSString * const RailwayLoginNotification;
extern NSString * const RailwayErrorNotification;
@interface RailwayHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface KnightMessage : NSObject
@interface RailwayInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (KnightMessage *)getInstance;
+ (RailwayInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface KnightMessageJM : NSObject
@interface RailwayInformationJM : NSObject
+(NSString *)KnightJM:(NSString *)jm;
+(NSString *)RailwayJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface KnightLocation : NSObject
@interface RailwayLocation : NSObject
+ (NSString *)KnightSKCloudServiceSetupOptionsKey;
+ (NSString *)RailwaySKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "KnightMessage.h"
#import "RailwayInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface KnightMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface RailwayMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL KnightYouYuanJiao;
@property(assign) BOOL RailwayYouYuanJiao;
- (void)KnightSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)KnightChuShiHuaWebView;
- (void)RailwaySettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)RailwayChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Knight/KnightAllManager.h"
#import "Knight/KnightHuiTiaoNotification.h"
#import "Knight/KnightMessage.h"
#import "Railway/RailwayAllManager.h"
#import "Railway/RailwayHuiTiaoNotification.h"
#import "Railway/RailwayInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *KnightAppId;
NSString *KnightAppKey;
NSString *RailwayAppId;
NSString *RailwayAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *KnightAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[KnightAllManager KnightInstance]KnightChuShiHua];
[[KnightAllManager KnightInstance]KnightYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:KnightCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"KnightCKAssetsToolCallBack" object:nil];
[[RailwayAllManager RailwayInstance]RailwayChuShiHua];
[[RailwayAllManager RailwayInstance]RailwayYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RailwayLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RailwayToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *KnightAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
KnightAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
KnightAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[KnightAllManager KnightInstance]KnightDengLu:KnightAppId :KnightAppKey :self.controller];
RailwayAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
RailwayAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[RailwayAllManager RailwayInstance]RailwayDengLu:RailwayAppId :RailwayAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *KnightAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[KnightMessage getInstance]openId];
loginInfo.sign = [[KnightMessage getInstance] token];
loginInfo.timestamp = [[KnightMessage getInstance] timestamp];
loginInfo.openId = [[RailwayInformation getInstance]openId];
loginInfo.sign = [[RailwayInformation getInstance] token];
loginInfo.timestamp = [[RailwayInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *KnightAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"KnightCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"RailwayToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *KnightAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[KnightAllManager KnightInstance] KnightCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[RailwayAllManager RailwayInstance] RailwayQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[KnightAllManager KnightInstance] KnightCKQueryOperation:self.controller KnightHuoWuID:products KnightJiaGe:[payInfo postAmount] KnightHuoWuMing:[payInfo productName] KnightDingDanHao:queryId];
[[RailwayAllManager RailwayInstance] RailwayQueryOperation:self.controller RailwayHuoWuID:products RailwayJiaGe:[payInfo postAmount] RailwayHuoWuMing:[payInfo productName] RailwayDingDanHao:queryId];
}
}
......
......@@ -10,9 +10,9 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月21日版本方法<br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月25日版本方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Knight.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Railway.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
5、``` 原 URL Schemes 中的 i9133public 改为 sdk.uuufish.com (可参考demo中info设置) ``` <br>
\ No newline at end of file
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) KnightHaiBaoJuhereportOpen;
- (void) KnightHaiBaoJuhereportSDKOpen;
- (void)KnightHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) RailwayHaiBaoJuhereportOpen;
- (void) RailwayHaiBaoJuhereportSDKOpen;
- (void)RailwayHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) KnightHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) RailwayHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)KnightHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)RailwayHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : KnightHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : RailwayHaiBaoJuheBaseModel
@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 *) KnightHaiBaoJuheGetTsign ;
- (NSString *) KnightHaiBaoJuheGetTimestamp ;
- (NSString *) RailwayHaiBaoJuheGetTsign ;
- (NSString *) RailwayHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : KnightHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : RailwayHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : KnightHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : RailwayHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// KnightHaiBaoJuheReportInfo.h
// RailwayHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : KnightHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/RailwayHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : RailwayHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)KnightHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)RailwayHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface KnightHaiBaoJuheBaseModel : NSObject
@interface RailwayHaiBaoJuheBaseModel : NSObject
- (NSString *)KnightHaiBaoJuheObjectToJsonString;
- (NSString *)RailwayHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface KnightHaiBaoJuheDGLogger : NSObject
@interface RailwayHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <UIKit/UIKit.h>
@interface KnightIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* KnightDingDanHao;
@property(nonatomic,strong) NSDictionary* KnightHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* KnightHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *KnightHuoWuLieBiaoView;
- (void)KnightHuaQianView:(UIViewController*)controller KnightHuoWuD:(NSString*)products KnightQian:(NSString*)amount KnightHuoWuMing:(NSString*)productName KnightDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface KnightAllManager : NSObject
{
NSString* KnightCKAPPID_;
NSString* KnightCKAPPKEY_;
NSString* KnightInviterCode_;
}
@property bool KnightGeiWoHuaQianBa;
+ (KnightAllManager *)KnightInstance;
- (void)KnightChuShiHua;
- (void)KnightDengLu:(NSString *)KnightCKAPPID : (NSString *)KnightCKAPPKEY : (UIViewController *)controller;
- (void)KnightYangShi:(NSString*)KnightLeiXing;
- (void)KnightCKQuery: (NSString *)KnightFuWuQiID : (NSString *)KnightNickName : (NSNumber *)KnightAmount : (NSString *)KnightCallBack : (UIViewController *)controller : (NSString *)KnightServerName;
- (void)KnightCKQueryOperation:(UIViewController*)controll KnightHuoWuID:(NSString*)products KnightJiaGe:(NSString*)amount KnightHuoWuMing:(NSString*)productName KnightDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const KnightCKAssetsExitNotification;
extern NSString * const KnightCKAssetsLoginNotification;
extern NSString * const KnightCKAssetsErrorNotification;
@interface KnightHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface KnightHungry : NSObject
+(void)KnightQsad;
-(void)KnightQsad123;
+(void)KnightQsagfhd;
-(void)KnightQsavbnd;
+(void)KnightQsavbnd;
-(void)KnightQsafgd;
+(void)KnightQsiuad;
@end
#import <UIKit/UIKit.h>
@interface RailwayIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* RailwayDingDanHao;
@property(nonatomic,strong) NSDictionary* RailwayHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* RailwayHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *RailwayHuoWuLieBiaoView;
- (void)RailwayHuaQianView:(UIViewController*)controller RailwayHuoWuD:(NSString*)products RailwayQian:(NSString*)amount RailwayHuoWuMing:(NSString*)productName RailwayDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface RailwayAllManager : NSObject
{
NSString* RailwayAPPID_;
NSString* RailwayAPPKEY_;
NSString* RailwayInviterCode_;
}
@property bool RailwayGeiWoHuaQianBa;
+ (RailwayAllManager *)RailwayInstance;
- (void)RailwayChuShiHua;
- (void)RailwayDengLu:(NSString *)RailwayAPPID : (NSString *)RailwayAPPKEY : (UIViewController *)controller;
- (void)RailwayYangShi:(NSString*)RailwayLeiXing;
- (void)RailwayQuery: (NSString *)RailwayFuWuQiID : (NSString *)RailwayNickName : (NSNumber *)RailwayAmount : (NSString *)RailwayCallBack : (UIViewController *)controller : (NSString *)RailwayServerName;
- (void)RailwayQueryOperation:(UIViewController*)controll RailwayHuoWuID:(NSString*)products RailwayJiaGe:(NSString*)amount RailwayHuoWuMing:(NSString*)productName RailwayDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const RailwayExitNotification;
extern NSString * const RailwayLoginNotification;
extern NSString * const RailwayErrorNotification;
@interface RailwayHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface KnightMessage : NSObject
@interface RailwayInformation : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (KnightMessage *)getInstance;
+ (RailwayInformation *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface KnightMessageJM : NSObject
@interface RailwayInformationJM : NSObject
+(NSString *)KnightJM:(NSString *)jm;
+(NSString *)RailwayJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface KnightLocation : NSObject
@interface RailwayLocation : NSObject
+ (NSString *)KnightSKCloudServiceSetupOptionsKey;
+ (NSString *)RailwaySKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "KnightMessage.h"
#import "RailwayInformation.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface KnightMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface RailwayMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL KnightYouYuanJiao;
@property(assign) BOOL RailwayYouYuanJiao;
- (void)KnightSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)KnightChuShiHuaWebView;
- (void)RailwaySettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)RailwayChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Knight/KnightAllManager.h"
#import "Knight/KnightHuiTiaoNotification.h"
#import "Knight/KnightMessage.h"
#import "Railway/RailwayAllManager.h"
#import "Railway/RailwayHuiTiaoNotification.h"
#import "Railway/RailwayInformation.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *KnightAppId;
NSString *KnightAppKey;
NSString *RailwayAppId;
NSString *RailwayAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *KnightAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[KnightAllManager KnightInstance]KnightChuShiHua];
[[KnightAllManager KnightInstance]KnightYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:KnightCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"KnightCKAssetsToolCallBack" object:nil];
[[RailwayAllManager RailwayInstance]RailwayChuShiHua];
[[RailwayAllManager RailwayInstance]RailwayYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:RailwayLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"RailwayToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *KnightAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
KnightAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
KnightAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[KnightAllManager KnightInstance]KnightDengLu:KnightAppId :KnightAppKey :self.controller];
RailwayAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
RailwayAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[RailwayAllManager RailwayInstance]RailwayDengLu:RailwayAppId :RailwayAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *KnightAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[KnightMessage getInstance]openId];
loginInfo.sign = [[KnightMessage getInstance] token];
loginInfo.timestamp = [[KnightMessage getInstance] timestamp];
loginInfo.openId = [[RailwayInformation getInstance]openId];
loginInfo.sign = [[RailwayInformation getInstance] token];
loginInfo.timestamp = [[RailwayInformation getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *KnightAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"KnightCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"RailwayToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *KnightAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[KnightAllManager KnightInstance] KnightCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[RailwayAllManager RailwayInstance] RailwayQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[KnightAllManager KnightInstance] KnightCKQueryOperation:self.controller KnightHuoWuID:products KnightJiaGe:[payInfo postAmount] KnightHuoWuMing:[payInfo productName] KnightDingDanHao:queryId];
[[RailwayAllManager RailwayInstance] RailwayQueryOperation:self.controller RailwayHuoWuID:products RailwayJiaGe:[payInfo postAmount] RailwayHuoWuMing:[payInfo productName] RailwayDingDanHao:queryId];
}
}
......