lizhihui

更新 190121 版本2

Showing 62 changed files with 233 additions and 233 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
2692FA4C21F578FF00371736 /* Minstrel.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4B21F578FF00371736 /* Minstrel.framework */; };
2692FA4E21F57C7500371736 /* Knight.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4D21F57C7500371736 /* Knight.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 */
2692FA4B21F578FF00371736 /* Minstrel.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Minstrel.framework; sourceTree = "<group>"; };
2692FA4D21F57C7500371736 /* Knight.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Knight.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,6 +103,7 @@
buildActionMask = 2147483647;
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
2692FA4E21F57C7500371736 /* Knight.framework in Frameworks */,
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
......@@ -111,7 +112,6 @@
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
2692FA4C21F578FF00371736 /* Minstrel.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
2692FA4B21F578FF00371736 /* Minstrel.framework */,
2692FA4D21F57C7500371736 /* Knight.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) MinstrelHaiBaoJuhereportOpen;
- (void) MinstrelHaiBaoJuhereportSDKOpen;
- (void)MinstrelHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) KnightHaiBaoJuhereportOpen;
- (void) KnightHaiBaoJuhereportSDKOpen;
- (void)KnightHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) MinstrelHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) KnightHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)MinstrelHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)KnightHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MinstrelHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : KnightHaiBaoJuheBaseModel
@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 *) MinstrelHaiBaoJuheGetTsign ;
- (NSString *) MinstrelHaiBaoJuheGetTimestamp ;
- (NSString *) KnightHaiBaoJuheGetTsign ;
- (NSString *) KnightHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MinstrelHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : KnightHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MinstrelHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : KnightHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// MinstrelHaiBaoJuheReportInfo.h
// KnightHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MinstrelHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : KnightHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)MinstrelHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)KnightHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface MinstrelHaiBaoJuheBaseModel : NSObject
@interface KnightHaiBaoJuheBaseModel : NSObject
- (NSString *)MinstrelHaiBaoJuheObjectToJsonString;
- (NSString *)KnightHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface MinstrelHaiBaoJuheDGLogger : NSObject
@interface KnightHaiBaoJuheDGLogger : 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 MinstrelLocation : NSObject
@interface KnightLocation : NSObject
+ (NSString *)MinstrelSKCloudServiceSetupOptionsKey;
+ (NSString *)KnightSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "MinstrelMessage.h"
#import "KnightMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface MinstrelMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface KnightMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL MinstrelYouYuanJiao;
@property(assign) BOOL KnightYouYuanJiao;
- (void)MinstrelSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MinstrelChuShiHuaWebView;
- (void)KnightSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)KnightChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface MinstrelMessage : NSObject
@interface KnightMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (MinstrelMessage *)getInstance;
+ (KnightMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface MinstrelMessageJM : NSObject
@interface KnightMessageJM : NSObject
+(NSString *)MinstrelJM:(NSString *)jm;
+(NSString *)KnightJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface MinstrelIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MinstrelDingDanHao;
@property(nonatomic,strong) NSDictionary* MinstrelHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MinstrelHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MinstrelHuoWuLieBiaoView;
- (void)MinstrelHuaQianView:(UIViewController*)controller MinstrelHuoWuD:(NSString*)products MinstrelQian:(NSString*)amount MinstrelHuoWuMing:(NSString*)productName MinstrelDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MinstrelAllManager : NSObject
{
NSString* MinstrelCKAPPID_;
NSString* MinstrelCKAPPKEY_;
NSString* MinstrelInviterCode_;
}
@property bool MinstrelGeiWoHuaQianBa;
+ (MinstrelAllManager *)MinstrelInstance;
- (void)MinstrelChuShiHua;
- (void)MinstrelDengLu:(NSString *)MinstrelCKAPPID : (NSString *)MinstrelCKAPPKEY : (UIViewController *)controller;
- (void)MinstrelYangShi:(NSString*)MinstrelLeiXing;
- (void)MinstrelCKQuery: (NSString *)MinstrelFuWuQiID : (NSString *)MinstrelNickName : (NSNumber *)MinstrelAmount : (NSString *)MinstrelCallBack : (UIViewController *)controller : (NSString *)MinstrelServerName;
- (void)MinstrelCKQueryOperation:(UIViewController*)controll MinstrelHuoWuID:(NSString*)products MinstrelJiaGe:(NSString*)amount MinstrelHuoWuMing:(NSString*)productName MinstrelDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MinstrelCKAssetsExitNotification;
extern NSString * const MinstrelCKAssetsLoginNotification;
extern NSString * const MinstrelCKAssetsErrorNotification;
@interface MinstrelHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface MinstrelHungry : NSObject
+(void)MinstrelQsad;
-(void)MinstrelQsad123;
+(void)MinstrelQsagfhd;
-(void)MinstrelQsavbnd;
+(void)MinstrelQsavbnd;
-(void)MinstrelQsafgd;
+(void)MinstrelQsiuad;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Minstrel/MinstrelAllManager.h"
#import "Minstrel/MinstrelHuiTiaoNotification.h"
#import "Minstrel/MinstrelMessage.h"
#import "Knight/KnightAllManager.h"
#import "Knight/KnightHuiTiaoNotification.h"
#import "Knight/KnightMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *MinstrelAppId;
NSString *MinstrelAppKey;
NSString *KnightAppId;
NSString *KnightAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *MinstrelAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[MinstrelAllManager MinstrelInstance]MinstrelChuShiHua];
[[MinstrelAllManager MinstrelInstance]MinstrelYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MinstrelCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MinstrelCKAssetsToolCallBack" object:nil];
[[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];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *MinstrelAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
MinstrelAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MinstrelAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MinstrelAllManager MinstrelInstance]MinstrelDengLu:MinstrelAppId :MinstrelAppKey :self.controller];
KnightAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
KnightAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[KnightAllManager KnightInstance]KnightDengLu:KnightAppId :KnightAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *MinstrelAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[MinstrelMessage getInstance]openId];
loginInfo.sign = [[MinstrelMessage getInstance] token];
loginInfo.timestamp = [[MinstrelMessage getInstance] timestamp];
loginInfo.openId = [[KnightMessage getInstance]openId];
loginInfo.sign = [[KnightMessage getInstance] token];
loginInfo.timestamp = [[KnightMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *MinstrelAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"MinstrelCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"KnightCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *MinstrelAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[MinstrelAllManager MinstrelInstance] MinstrelCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[KnightAllManager KnightInstance] KnightCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[MinstrelAllManager MinstrelInstance] MinstrelCKQueryOperation:self.controller MinstrelHuoWuID:products MinstrelJiaGe:[payInfo postAmount] MinstrelHuoWuMing:[payInfo productName] MinstrelDingDanHao:queryId];
[[KnightAllManager KnightInstance] KnightCKQueryOperation:self.controller KnightHuoWuID:products KnightJiaGe:[payInfo postAmount] KnightHuoWuMing:[payInfo productName] KnightDingDanHao:queryId];
}
}
......
......@@ -12,7 +12,7 @@
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月21日版本方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Minstrel.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Knight.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) MinstrelHaiBaoJuhereportOpen;
- (void) MinstrelHaiBaoJuhereportSDKOpen;
- (void)MinstrelHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) KnightHaiBaoJuhereportOpen;
- (void) KnightHaiBaoJuhereportSDKOpen;
- (void)KnightHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) MinstrelHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) KnightHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)MinstrelHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)KnightHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : MinstrelHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : KnightHaiBaoJuheBaseModel
@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 *) MinstrelHaiBaoJuheGetTsign ;
- (NSString *) MinstrelHaiBaoJuheGetTimestamp ;
- (NSString *) KnightHaiBaoJuheGetTsign ;
- (NSString *) KnightHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : MinstrelHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : KnightHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : MinstrelHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : KnightHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// MinstrelHaiBaoJuheReportInfo.h
// KnightHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/MinstrelHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : MinstrelHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/KnightHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : KnightHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)MinstrelHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)KnightHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface MinstrelHaiBaoJuheBaseModel : NSObject
@interface KnightHaiBaoJuheBaseModel : NSObject
- (NSString *)MinstrelHaiBaoJuheObjectToJsonString;
- (NSString *)KnightHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface MinstrelHaiBaoJuheDGLogger : NSObject
@interface KnightHaiBaoJuheDGLogger : 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 MinstrelLocation : NSObject
@interface KnightLocation : NSObject
+ (NSString *)MinstrelSKCloudServiceSetupOptionsKey;
+ (NSString *)KnightSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "MinstrelMessage.h"
#import "KnightMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface MinstrelMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface KnightMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL MinstrelYouYuanJiao;
@property(assign) BOOL KnightYouYuanJiao;
- (void)MinstrelSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)MinstrelChuShiHuaWebView;
- (void)KnightSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)KnightChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface MinstrelMessage : NSObject
@interface KnightMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (MinstrelMessage *)getInstance;
+ (KnightMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface MinstrelMessageJM : NSObject
@interface KnightMessageJM : NSObject
+(NSString *)MinstrelJM:(NSString *)jm;
+(NSString *)KnightJM:(NSString *)jm;
@end
......
#import <UIKit/UIKit.h>
@interface MinstrelIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* MinstrelDingDanHao;
@property(nonatomic,strong) NSDictionary* MinstrelHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* MinstrelHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *MinstrelHuoWuLieBiaoView;
- (void)MinstrelHuaQianView:(UIViewController*)controller MinstrelHuoWuD:(NSString*)products MinstrelQian:(NSString*)amount MinstrelHuoWuMing:(NSString*)productName MinstrelDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface MinstrelAllManager : NSObject
{
NSString* MinstrelCKAPPID_;
NSString* MinstrelCKAPPKEY_;
NSString* MinstrelInviterCode_;
}
@property bool MinstrelGeiWoHuaQianBa;
+ (MinstrelAllManager *)MinstrelInstance;
- (void)MinstrelChuShiHua;
- (void)MinstrelDengLu:(NSString *)MinstrelCKAPPID : (NSString *)MinstrelCKAPPKEY : (UIViewController *)controller;
- (void)MinstrelYangShi:(NSString*)MinstrelLeiXing;
- (void)MinstrelCKQuery: (NSString *)MinstrelFuWuQiID : (NSString *)MinstrelNickName : (NSNumber *)MinstrelAmount : (NSString *)MinstrelCallBack : (UIViewController *)controller : (NSString *)MinstrelServerName;
- (void)MinstrelCKQueryOperation:(UIViewController*)controll MinstrelHuoWuID:(NSString*)products MinstrelJiaGe:(NSString*)amount MinstrelHuoWuMing:(NSString*)productName MinstrelDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const MinstrelCKAssetsExitNotification;
extern NSString * const MinstrelCKAssetsLoginNotification;
extern NSString * const MinstrelCKAssetsErrorNotification;
@interface MinstrelHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface MinstrelHungry : NSObject
+(void)MinstrelQsad;
-(void)MinstrelQsad123;
+(void)MinstrelQsagfhd;
-(void)MinstrelQsavbnd;
+(void)MinstrelQsavbnd;
-(void)MinstrelQsafgd;
+(void)MinstrelQsiuad;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Minstrel/MinstrelAllManager.h"
#import "Minstrel/MinstrelHuiTiaoNotification.h"
#import "Minstrel/MinstrelMessage.h"
#import "Knight/KnightAllManager.h"
#import "Knight/KnightHuiTiaoNotification.h"
#import "Knight/KnightMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *MinstrelAppId;
NSString *MinstrelAppKey;
NSString *KnightAppId;
NSString *KnightAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *MinstrelAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[MinstrelAllManager MinstrelInstance]MinstrelChuShiHua];
[[MinstrelAllManager MinstrelInstance]MinstrelYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:MinstrelCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"MinstrelCKAssetsToolCallBack" object:nil];
[[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];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *MinstrelAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
MinstrelAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
MinstrelAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[MinstrelAllManager MinstrelInstance]MinstrelDengLu:MinstrelAppId :MinstrelAppKey :self.controller];
KnightAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
KnightAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[KnightAllManager KnightInstance]KnightDengLu:KnightAppId :KnightAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *MinstrelAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[MinstrelMessage getInstance]openId];
loginInfo.sign = [[MinstrelMessage getInstance] token];
loginInfo.timestamp = [[MinstrelMessage getInstance] timestamp];
loginInfo.openId = [[KnightMessage getInstance]openId];
loginInfo.sign = [[KnightMessage getInstance] token];
loginInfo.timestamp = [[KnightMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *MinstrelAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"MinstrelCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"KnightCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *MinstrelAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[MinstrelAllManager MinstrelInstance] MinstrelCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[KnightAllManager KnightInstance] KnightCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[MinstrelAllManager MinstrelInstance] MinstrelCKQueryOperation:self.controller MinstrelHuoWuID:products MinstrelJiaGe:[payInfo postAmount] MinstrelHuoWuMing:[payInfo productName] MinstrelDingDanHao:queryId];
[[KnightAllManager KnightInstance] KnightCKQueryOperation:self.controller KnightHuoWuID:products KnightJiaGe:[payInfo postAmount] KnightHuoWuMing:[payInfo productName] KnightDingDanHao:queryId];
}
}
......